-------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/silja/Dropbox/PSRM_symposium/MayJune2018/submitted häusermann/Haeusermann_PSRM_replicationmaterial/
> LogHaeusermannPSRM.log
  log type:  text
 opened on:  29 Aug 2018, 11:17:15

. do "/var/folders/gg/0dwx2d916473bd53z62vbtbc0000gp/T//SD37605.000000"

. *----------------------------------------------------------------------------------------*
. *       Paper:                  Dualization and electoral realignment
. *       Author:             Silja H�usermann
. *       Version:                June 18th 2018
. *       Data:                   European Social Survey Data rounds 1-5
. *----------------------------------------------------------------------------------------*
. 
. *----------------------------------------------------------------------------------------*
. *---------------------------------- TABLE OF CONTENTS -----------------------------------*
. *----------------------------------------------------------------------------------------*
. 
. * 1. prepare/recode ESS1
. * 2. prepare/recode ESS2
. * 3. prepare/recode ESS3
. * 4. prepare/recode ESS4
. * 5. prepare/recode ESS5
. * 6. Merge into 1 file
. * 7. Analysis - frequencies, table 1
. * 8. Analysis - participation and partyvote, table 2
. 
. 
. 
. *----------------------------------------------------------------------------------------*
. *       1. prepare/recode ESS1
. *----------------------------------------------------------------------------------------*
. 
. *----------------------------------------------------------------------------------------*
. *       1. Operationalization of variables, round 1
. *----------------------------------------------------------------------------------------*
. * Basic commands
. clear all

. set more off

. 
. 
. 
. * Import dataset (from ESS website)
. 
. use ESS1e06_4.dta

. 
. 
. *       1.0 country selection: 
. * AT, BE, CH, GE, DK, SP, FIN, FR, UK, GR, IE, IT, NL, NO, PT, SE
.  
. drop if cntry=="CZ"
(1360 observations deleted)

. drop if cntry=="HU"
(1685 observations deleted)

. drop if cntry=="LU"
(1552 observations deleted)

. drop if cntry=="PL"
(2110 observations deleted)

. drop if cntry=="SI"
(1519 observations deleted)

. drop if cntry=="IL"
(2499 observations deleted)

. 
. gen at=cntry=="AT"

. lab var at "Country dummy Austria"

. gen be=cntry=="BE"

. lab var be "Country dummy Belgium"

. gen ch=cntry=="CH"

. lab var ch "Country dummy Switzerland"

. gen de=cntry=="DE"

. lab var de "Country dummy Germany"

. gen dk=cntry=="DK"

. lab var dk "Country dummy Denmark"

. gen es=cntry=="ES"

. lab var es "Country dummy Spain"

. gen fi=cntry=="FI"

. lab var fi "Country dummy Finland"

. gen fr=cntry=="FR"

. lab var fr "Country dummy France"

. gen gb=cntry=="GB"

. lab var gb "Country dummy United Kingdom"

. gen gr=cntry=="GR"

. lab var gr "Country dummy Greece"

. gen ie=cntry=="IE"

. lab var ie "Country dummy Ireland"

. gen it=cntry=="IT"

. lab var it "Country dummy Italy"

. gen nl=cntry=="NL"

. lab var nl "Country dummy Netherlands"

. gen no=cntry=="NO"

. lab var no "Country dummy Norway"

. gen pt=cntry=="PT"

. lab var pt "Country dummy Portugal"

. gen se=cntry=="SE"

. lab var se "Country dummy Sweden"

. 
. 
. *******************************
. *   1.1 GLOBALIZATION LOSERS
. *******************************
. 
. ** from Rommel/Walter 2017: combination of offshoreable and low-skill (educlvl und offshore2)
. 
. * Creation of variable
. gen educyrs=eduyrs

. lab var educyrs "Years of Education"

. * Recoding of variable
. replace educyrs=25 if eduyrs>25 & eduyrs<.
(507 real changes made)

. 
. 
. * Creation of variable
. gen educlvl=edulvla

. lab var educlvl "Education level"

. * Recoding of variable and definition of value label
. recode educlvl (55=.)
(educlvl: 51 changes made)

. label define educlvl 1 "Less than lower secondary education" ///
>         2 "Lower secondary education completed" ///
>         3 "Upper secondary education completed" ///
>         4 "Post-secondary, non-tertiary education completed" ///
>         5 "Tertiary education completed"

. label values educlvl educlvl

. 
. 
. *** Creation of 4-digit ISCO-Code
. gen isco=iscoco

. lab var isco "4-digit ISCO-code"

. 
. *** Metric offshoreability variable     
. * Creation of variable
. gen offshore=.
(31634 missing values generated)

. replace offshore=0 if isco<.
(31634 real changes made)

. replace offshore=49 if isco==1142
(6 real changes made)

. replace offshore=55 if isco==1222
(76 real changes made)

. replace offshore=28 if isco==1226
(30 real changes made)

. replace offshore=55 if isco==1228
(17 real changes made)

. replace offshore=83 if isco==1231
(145 real changes made)

. replace offshore=49 if isco==1232
(60 real changes made)

. replace offshore=40 if isco==1233
(154 real changes made)

. replace offshore=53 if isco==1234
(20 real changes made)

. replace offshore=49 if isco==1235
(24 real changes made)

. replace offshore=55 if isco==1236
(28 real changes made)

. replace offshore=55 if isco==1237
(39 real changes made)

. replace offshore=55 if isco==1311
(45 real changes made)

. replace offshore=55 if isco==1312
(40 real changes made)

. replace offshore=55 if isco==1313
(83 real changes made)

. replace offshore=55 if isco==1314
(323 real changes made)

. replace offshore=55 if isco==1315
(169 real changes made)

. replace offshore=48 if isco==1316
(43 real changes made)

. replace offshore=52 if isco==1317
(71 real changes made)

. replace offshore=55 if isco==1318
(32 real changes made)

. replace offshore=55 if isco==1319
(100 real changes made)

. replace offshore=66 if isco==2111
(8 real changes made)

. replace offshore=74 if isco==2112
(2 real changes made)

. replace offshore=66 if isco==2113
(34 real changes made)

. replace offshore=66 if isco==2114
(8 real changes made)

. replace offshore=89 if isco==2121
(2 real changes made)

. replace offshore=96 if isco==2122
(5 real changes made)

. replace offshore=83 if isco==2131
(177 real changes made)

. replace offshore=90 if isco==2139
(78 real changes made)

. replace offshore=25 if isco==2141
(75 real changes made)

. replace offshore=64 if isco==2143
(28 real changes made)

. replace offshore=74 if isco==2144
(37 real changes made)

. replace offshore=72 if isco==2146
(17 real changes made)

. replace offshore=69 if isco==2147
(4 real changes made)

. replace offshore=86 if isco==2148
(13 real changes made)

. replace offshore=71 if isco==2149
(90 real changes made)

. replace offshore=81 if isco==2211
(22 real changes made)

. replace offshore=83 if isco==2212
(7 real changes made)

. replace offshore=72 if isco==2411
(167 real changes made)

. replace offshore=50 if isco==2419
(204 real changes made)

. replace offshore=74 if isco==2421
(55 real changes made)

. replace offshore=67 if isco==2444
(31 real changes made)

. replace offshore=90 if isco==2451
(98 real changes made)

. replace offshore=78 if isco==2452
(41 real changes made)

. replace offshore=25 if isco==2453
(29 real changes made)

. replace offshore=48 if isco==2455
(30 real changes made)

. replace offshore=47 if isco==3111
(40 real changes made)

. replace offshore=47 if isco==3113
(47 real changes made)

. replace offshore=47 if isco==3114
(70 real changes made)

. replace offshore=72 if isco==3115
(68 real changes made)

. replace offshore=47 if isco==3116
(24 real changes made)

. replace offshore=94 if isco==3118
(65 real changes made)

. replace offshore=54 if isco==3119
(145 real changes made)

. replace offshore=75 if isco==3121
(50 real changes made)

. replace offshore=84 if isco==3122
(52 real changes made)

. replace offshore=68 if isco==3123
(9 real changes made)

. replace offshore=36 if isco==3131
(54 real changes made)

. replace offshore=36 if isco==3132
(9 real changes made)

. replace offshore=46 if isco==3133
(21 real changes made)

. replace offshore=34 if isco==3139
(5 real changes made)

. replace offshore=52 if isco==3141
(10 real changes made)

. replace offshore=60 if isco==3152
(70 real changes made)

. replace offshore=55 if isco==3211
(44 real changes made)

. replace offshore=55 if isco==3212
(20 real changes made)

. replace offshore=44 if isco==3213
(7 real changes made)

. replace offshore=32 if isco==3228
(44 real changes made)

. replace offshore=51 if isco==3411
(23 real changes made)

. replace offshore=85 if isco==3412
(93 real changes made)

. replace offshore=50 if isco==3414
(16 real changes made)

. replace offshore=55 if isco==3416
(62 real changes made)

. replace offshore=59 if isco==3419
(189 real changes made)

. replace offshore=51 if isco==3421
(58 real changes made)

. replace offshore=48 if isco==3422
(12 real changes made)

. replace offshore=38 if isco==3431
(390 real changes made)

. replace offshore=51 if isco==3432
(67 real changes made)

. replace offshore=84 if isco==3433
(146 real changes made)

. replace offshore=84 if isco==3434
(6 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=100 if isco==3442
(43 real changes made)

. replace offshore=85 if isco==3471
(74 real changes made)

. replace offshore=30 if isco==3472
(7 real changes made)

. replace offshore=95 if isco==4111
(39 real changes made)

. replace offshore=94 if isco==4112
(20 real changes made)

. replace offshore=100 if isco==4113
(38 real changes made)

. replace offshore=71 if isco==4114
(7 real changes made)

. replace offshore=38 if isco==4115
(486 real changes made)

. replace offshore=84 if isco==4121
(272 real changes made)

. replace offshore=54 if isco==4122
(138 real changes made)

. replace offshore=31 if isco==4131
(209 real changes made)

. replace offshore=67 if isco==4132
(76 real changes made)

. replace offshore=67 if isco==4133
(69 real changes made)

. replace offshore=46 if isco==4141
(50 real changes made)

. replace offshore=26 if isco==4142
(121 real changes made)

. replace offshore=95 if isco==4143
(10 real changes made)

. replace offshore=54 if isco==4144
(15 real changes made)

. replace offshore=54 if isco==4190
(788 real changes made)

. replace offshore=94 if isco==4211
(129 real changes made)

. replace offshore=54 if isco==4214
(1 real change made)

. replace offshore=65 if isco==4215
(12 real changes made)

. replace offshore=72 if isco==4221
(25 real changes made)

. replace offshore=54 if isco==4222
(189 real changes made)

. replace offshore=50 if isco==4223
(99 real changes made)

. replace offshore=86 if isco==5113
(15 real changes made)

. replace offshore=59 if isco==6142
(3 real changes made)

. replace offshore=36 if isco==7111
(13 real changes made)

. replace offshore=35 if isco==7112
(3 real changes made)

. replace offshore=36 if isco==7113
(13 real changes made)

. replace offshore=65 if isco==7211
(11 real changes made)

. replace offshore=69 if isco==7212
(94 real changes made)

. replace offshore=70 if isco==7213
(60 real changes made)

. replace offshore=70 if isco==7222
(106 real changes made)

. replace offshore=68 if isco==7223
(71 real changes made)

. replace offshore=68 if isco==7224
(9 real changes made)

. replace offshore=26 if isco==7311
(30 real changes made)

. replace offshore=64 if isco==7313
(18 real changes made)

. replace offshore=69 if isco==7321
(6 real changes made)

. replace offshore=69 if isco==7322
(14 real changes made)

. replace offshore=68 if isco==7323
(1 real change made)

. replace offshore=68 if isco==7324
(13 real changes made)

. replace offshore=60 if isco==7331
(8 real changes made)

. replace offshore=75 if isco==7332
(5 real changes made)

. replace offshore=59 if isco==7341
(58 real changes made)

. replace offshore=59 if isco==7342
(4 real changes made)

. replace offshore=59 if isco==7343
(4 real changes made)

. replace offshore=34 if isco==7344
(12 real changes made)

. replace offshore=59 if isco==7345
(16 real changes made)

. replace offshore=75 if isco==7346
(15 real changes made)

. replace offshore=68 if isco==7413
(8 real changes made)

. replace offshore=27 if isco==7414
(9 real changes made)

. replace offshore=55 if isco==7415
(0 real changes made)

. replace offshore=43 if isco==7421
(22 real changes made)

. replace offshore=57 if isco==7422
(136 real changes made)

. replace offshore=57 if isco==7423
(9 real changes made)

. replace offshore=66 if isco==7424
(6 real changes made)

. replace offshore=75 if isco==7431
(11 real changes made)

. replace offshore=75 if isco==7432
(27 real changes made)

. replace offshore=75 if isco==7433
(118 real changes made)

. replace offshore=73 if isco==7434
(4 real changes made)

. replace offshore=75 if isco==7435
(22 real changes made)

. replace offshore=75 if isco==7436
(125 real changes made)

. replace offshore=57 if isco==7437
(19 real changes made)

. replace offshore=75 if isco==7441
(4 real changes made)

. replace offshore=72 if isco==7442
(31 real changes made)

. replace offshore=36 if isco==8111
(5 real changes made)

. replace offshore=36 if isco==8112
(5 real changes made)

. replace offshore=36 if isco==8113
(20 real changes made)

. replace offshore=59 if isco==8121
(6 real changes made)

. replace offshore=68 if isco==8122
(18 real changes made)

. replace offshore=70 if isco==8123
(7 real changes made)

. replace offshore=68 if isco==8124
(3 real changes made)

. replace offshore=69 if isco==8131
(6 real changes made)

. replace offshore=68 if isco==8139
(8 real changes made)

. replace offshore=57 if isco==8141
(31 real changes made)

. replace offshore=68 if isco==8142
(3 real changes made)

. replace offshore=68 if isco==8143
(23 real changes made)

. replace offshore=68 if isco==8151
(2 real changes made)

. replace offshore=70 if isco==8152
(1 real change made)

. replace offshore=68 if isco==8153
(2 real changes made)

. replace offshore=68 if isco==8154
(0 real changes made)

. replace offshore=29 if isco==8155
(3 real changes made)

. replace offshore=68 if isco==8159
(6 real changes made)

. replace offshore=42 if isco==8161
(8 real changes made)

. replace offshore=55 if isco==8162
(7 real changes made)

. replace offshore=29 if isco==8163
(5 real changes made)

. replace offshore=64 if isco==8171
(0 real changes made)

. replace offshore=68 if isco==8172
(0 real changes made)

. replace offshore=68 if isco==8211
(50 real changes made)

. replace offshore=68 if isco==8212
(7 real changes made)

. replace offshore=68 if isco==8221
(13 real changes made)

. replace offshore=35 if isco==8222
(1 real change made)

. replace offshore=68 if isco==8223
(18 real changes made)

. replace offshore=41 if isco==8224
(2 real changes made)

. replace offshore=29 if isco==8229
(6 real changes made)

. replace offshore=69 if isco==8231
(13 real changes made)

. replace offshore=68 if isco==8232
(33 real changes made)

. replace offshore=57 if isco==8240
(22 real changes made)

. replace offshore=58 if isco==8251
(35 real changes made)

. replace offshore=59 if isco==8252
(2 real changes made)

. replace offshore=68 if isco==8253
(12 real changes made)

. replace offshore=75 if isco==8261
(35 real changes made)

. replace offshore=75 if isco==8262
(27 real changes made)

. replace offshore=75 if isco==8263
(88 real changes made)

. replace offshore=75 if isco==8264
(34 real changes made)

. replace offshore=75 if isco==8265
(2 real changes made)

. replace offshore=75 if isco==8266
(7 real changes made)

. replace offshore=75 if isco==8269
(27 real changes made)

. replace offshore=27 if isco==8271
(28 real changes made)

. replace offshore=68 if isco==8272
(15 real changes made)

. replace offshore=68 if isco==8273
(8 real changes made)

. replace offshore=30 if isco==8274
(19 real changes made)

. replace offshore=31 if isco==8275
(16 real changes made)

. replace offshore=68 if isco==8276
(3 real changes made)

. replace offshore=27 if isco==8277
(2 real changes made)

. replace offshore=68 if isco==8278
(13 real changes made)

. replace offshore=66 if isco==8281
(67 real changes made)

. replace offshore=66 if isco==8282
(48 real changes made)

. replace offshore=66 if isco==8283
(31 real changes made)

. replace offshore=68 if isco==8284
(15 real changes made)

. replace offshore=57 if isco==8285
(8 real changes made)

. replace offshore=64 if isco==8286
(0 real changes made)

. replace offshore=68 if isco==8290
(151 real changes made)

. replace offshore=34 if isco==8340
(18 real changes made)

. replace offshore=95 if isco==9113
(30 real changes made)

. replace offshore=64 if isco==9321
(0 real changes made)

. replace offshore=29 if isco==9333
(0 real changes made)

. replace offshore=55 if isco==1227
(43 real changes made)

. replace offshore=89 if isco==2121
(0 real changes made)

. replace offshore=100 if isco==2132
(0 real changes made)

. replace offshore=70 if isco==2145
(46 real changes made)

. replace offshore=71 if isco==2149
(0 real changes made)

. replace offshore=81 if isco==2211
(0 real changes made)

. replace offshore=46 if isco==2412
(65 real changes made)

. replace offshore=50 if isco==2419
(0 real changes made)

. replace offshore=33 if isco==2432
(32 real changes made)

. replace offshore=89 if isco==2441
(48 real changes made)

. replace offshore=48 if isco==2455
(0 real changes made)

. replace offshore=72 if isco==3115
(0 real changes made)

. replace offshore=54 if isco==3119
(0 real changes made)

. replace offshore=46 if isco==3133
(0 real changes made)

. replace offshore=34 if isco==3139
(0 real changes made)

. replace offshore=34 if isco==3224
(15 real changes made)

. replace offshore=51 if isco==3411
(0 real changes made)

. replace offshore=25 if isco==3415
(247 real changes made)

. replace offshore=50 if isco==3417
(9 real changes made)

. replace offshore=59 if isco==3419
(0 real changes made)

. replace offshore=51 if isco==3432
(0 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=90 if isco==3460
(204 real changes made)

. replace offshore=54 if isco==4122
(0 real changes made)

. replace offshore=31 if isco==4131
(0 real changes made)

. replace offshore=67 if isco==4132
(0 real changes made)

. replace offshore=46 if isco==4141
(0 real changes made)

. replace offshore=26 if isco==4142
(0 real changes made)

. replace offshore=54 if isco==4222
(0 real changes made)

. replace offshore=68 if isco==7141
(156 real changes made)

. replace offshore=68 if isco==7224
(0 real changes made)

. replace offshore=65 if isco==7241
(122 real changes made)

. replace offshore=34 if isco==7344
(0 real changes made)

. replace offshore=72 if isco==7442
(0 real changes made)

. replace offshore=68 if isco==8122
(0 real changes made)

. replace offshore=68 if isco==8139
(0 real changes made)

. replace offshore=42 if isco==8161
(0 real changes made)

. replace offshore=68 if isco==8211
(0 real changes made)

. replace offshore=68 if isco==8223
(0 real changes made)

. replace offshore=41 if isco==8224
(0 real changes made)

. replace offshore=57 if isco==8240
(0 real changes made)

. replace offshore=58 if isco==8251
(0 real changes made)

. replace offshore=75 if isco==8269
(0 real changes made)

. replace offshore=66 if isco==8281
(0 real changes made)

. replace offshore=66 if isco==8283
(0 real changes made)

. replace offshore=68 if isco==8284
(0 real changes made)

. replace offshore=68 if isco==8290
(0 real changes made)

. replace offshore=70 if isco==9322
(0 real changes made)

. lab var offshore "Offshoring Potential (Blinder 2007), metric"

. 
. *** Creation of ordinal (4-point scale) offshoreability variable
. * Creation of variable
. gen offshore4=.
(31634 missing values generated)

. replace offshore4=4 if offshore<.
(31634 real changes made)

. replace offshore4=3 if offshore<75
(29165 real changes made)

. replace offshore4=2 if offshore<50
(23465 real changes made)

. replace offshore4=1 if offshore<25
(20819 real changes made)

. lab var offshore4 "Offshoring Potential (Blinder 2007), ordinal"

. * Definition of value label
. lab define offshore4 1 "0-24%" 2 "5-49%" 3 "50-74%" 4 "75-100%"

. lab values offshore4 offshore4

. 
. *** Creation of dichotomous offshoreability variable
. * Creation of variable
. gen offshore2=.
(31634 missing values generated)

. replace offshore2=1 if offshore>0 & offshore<.
(10815 real changes made)

. replace offshore2=0 if offshore==0
(20819 real changes made)

. lab var offshore2 "Offshoring Potential (Blinder 2007), dichotomous"

. * Definition of value label
. lab define offshore2 0 "Not offshoreable" 1 "Offshoreable"

. lab values offshore2 offshore2

. 
. ***********************
. 
. *** Creation of globalization loser variable 1 : low-skilled offshoreable
. * Creation of variable
. gen glob_losers1=.
(31634 missing values generated)

. replace glob_losers1=1 if offshore2==1 & educlvl<3
(3168 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl<3
(9215 real changes made)

. replace glob_losers1=0 if offshore2==1 & educlvl>2
(7647 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl>2
(11604 real changes made)

. lab var glob_losers1 "Globalization losers; lowskilled exposed "

. * Definition of value label
. lab define glob_losers1 1 "glob loser (l-s off)" 0 "not loser"

. lab values glob_losers1 glob_losers1

. 
. *** Creation of winner variable 1: low-skilled sheltered
. * Creation of variable
. gen glob_winners1=.
(31634 missing values generated)

. replace glob_winners1 =0 if offshore2==1 & educlvl<3
(3168 real changes made)

. replace glob_winners1 =1 if offshore2==0 & educlvl<3
(9215 real changes made)

. replace glob_winners1 =0 if offshore2==1 & educlvl>2
(7647 real changes made)

. replace glob_winners1 =0 if offshore2==0 & educlvl>2
(11604 real changes made)

. lab var glob_winners1 "Globalization winners; lowskilled sheltered "

. * Definition of value label
. lab define glob_winners1 1 "glob winners (l-s sheltered)" 0 "not winner"

. lab values glob_winners1 glob_losers1

. 
. 
. 
. ************************************
. *       1.2 MODERNIZATION LOSERS
. 
. * Oesch 16-classes for respondents only, code from his website  http://people.unil.ch/danieloesch/
. 
. ****************************************************************************************
. * Respondent's Oesch class position
. * Recode and create variables used to construct class variable for respondents
. * Variables used to construct class variable for respondents: iscoco, emplrel, emplno
. ****************************************************************************************
. 
. **** Recode occupation variable (isco88 com 4-digit) for respondents
. 
. tab iscoco

               Occupation, ISCO88 (com) |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                           Armed forces |        131        0.41        0.41
       Legislators and senior officials |          6        0.02        0.43
Legislators, senior government official |         28        0.09        0.52
Senior officials of special-interest or |          1        0.00        0.52
Senior officials of economic-interest o |          6        0.02        0.54
 Senior off human, special-interest org |          5        0.02        0.56
                     Corporate managers |          7        0.02        0.58
         Directors and chief executives |        189        0.60        1.18
     Production and operations managers |         99        0.31        1.49
Managers agriculture,hunting,forestry,f |          4        0.01        1.50
              Managers in manufacturing |         76        0.24        1.74
               Managers in construction |         26        0.08        1.83
 Managers in wholesale and retail trade |         55        0.17        2.00
     Managers in restaurants and hotels |         29        0.09        2.09
Managers transport,storage,communicatio |         30        0.09        2.19
Managers in business services enterpris |         43        0.14        2.32
Managers personal care,cleaning,rel ser |         17        0.05        2.38
      Managers not elsewhere classified |         89        0.28        2.66
              Other specialist managers |          7        0.02        2.68
   Finance and administration  managers |        145        0.46        3.14
Personnel and industrial relations mana |         60        0.19        3.33
           Sales and marketing managers |        154        0.49        3.82
Advertising and public relations manage |         20        0.06        3.88
      Supply and distribution  managers |         24        0.08        3.95
            Computing services managers |         28        0.09        4.04
      Research and development managers |         39        0.12        4.17
Oth spec managers not elsewhere classif |        126        0.40        4.56
          Managers of small enterprises |         32        0.10        4.67
          Managers of small enterprises |         29        0.09        4.76
Mngr small ent agr,hunting,forestry,fis |         45        0.14        4.90
        Mngr small ent in manufacturing |         40        0.13        5.03
         Mngr small ent in construction |         83        0.26        5.29
Mngr small ent wholesale and retail tra |        323        1.02        6.31
Mngr small ent of restaurants and hotel |        169        0.53        6.84
     Mngr small ent transp,storage,comm |         43        0.14        6.98
Mngr small ent of business serv enterpr |         71        0.22        7.20
Mngr small ent pers care,cleaning,rel s |         32        0.10        7.31
Mngr small ent not elsewhere classified |        100        0.32        7.62
                          Professionals |         18        0.06        7.68
Phys, mathem, engin science professiona |          1        0.00        7.68
Physics, chemists, related professional |          2        0.01        7.69
             Physicists and astronomers |          8        0.03        7.71
                         Meteorologists |          2        0.01        7.72
                               Chemists |         34        0.11        7.83
           Geologists and geophysicists |          8        0.03        7.85
Mathematicians and related professional |          2        0.01        7.86
                          Statisticians |          5        0.02        7.87
                Computing professionals |         34        0.11        7.98
Comp systems designers,analysts,program |        177        0.56        8.54
Comp professionals not elsewhere classi |         78        0.25        8.79
Architects,engineers,related profession |         26        0.08        8.87
  Architects, town and traffic planners |         75        0.24        9.11
                        Civil engineers |         68        0.21        9.32
                   Electrical engineers |         28        0.09        9.41
Electronics, telecommunications enginee |         37        0.12        9.53
                   Mechanical engineers |         46        0.15        9.67
                     Chemical engineers |         17        0.05        9.73
Mining engineers, metall,rel profession |          4        0.01        9.74
            Cartographers and surveyors |         13        0.04        9.78
Arch, engin,rel prof not elsewhere clas |         90        0.28       10.07
             Life science professionals |          7        0.02       10.09
Biol,botan,zool and related professiona |         22        0.07       10.16
Pharm, pathol and related professionals |          7        0.02       10.18
  Agronomists and related professionals |         20        0.06       10.24
  Health professionals (except nursing) |          4        0.01       10.25
                        Medical doctors |        160        0.51       10.76
                               Dentists |         31        0.10       10.86
                          Veterinarians |         13        0.04       10.90
                            Pharmacists |         26        0.08       10.98
Health prof (not nursing) not elsew cla |         41        0.13       11.11
    Nursing and midwifery professionals |        192        0.61       11.72
                 Teaching professionals |         57        0.18       11.90
   Coll,univ, higher educ teaching prof |        148        0.47       12.37
Secondary education teaching profession |        468        1.48       13.85
Primary and pre-primary educ teaching p |         55        0.17       14.02
Primary education teaching professional |        265        0.84       14.86
Pre-primary educ teaching professionals |         68        0.21       15.07
Special education teaching professional |         41        0.13       15.20
           Other teaching professionals |         30        0.09       15.30
          Education methods specialists |         21        0.07       15.36
                      School inspectors |         10        0.03       15.39
Other teaching prof not elsewhere class |         98        0.31       15.70
                    Other professionals |         15        0.05       15.75
                 Business professionals |         11        0.03       15.79
                            Accountants |        167        0.53       16.31
    Personnel and careers professionals |         65        0.21       16.52
 Business prof not elsewhere classified |        204        0.64       17.17
                    Legal professionals |         16        0.05       17.22
                                Lawyers |         55        0.17       17.39
                                 Judges |         10        0.03       17.42
    Legal prof not elsewhere classified |         35        0.11       17.53
   Archiv,libr,related information prof |          5        0.02       17.55
                Archivists and curators |         16        0.05       17.60
    Librarians,related information prof |         32        0.10       17.70
Social science and related professional |          5        0.02       17.72
                             Economists |         48        0.15       17.87
Sociologists, anthropologists, rel prof |         14        0.04       17.91
Philosophers,historians,political scien |          9        0.03       17.94
Philologists, translators and interpret |         31        0.10       18.04
                          Psychologists |         40        0.13       18.16
              Social work professionals |        122        0.39       18.55
Writers and creative or performing arti |          5        0.02       18.57
 Authors, journalists and other writers |         98        0.31       18.88
Sculptors, painters and related artists |         41        0.13       19.00
       Composers, musicians and singers |         29        0.09       19.10
             Choreographers and dancers |          6        0.02       19.12
Film, stage and related actors and dire |         30        0.09       19.21
                Religious professionals |         31        0.10       19.31
Public service administrative professio |        115        0.36       19.67
Technicians and associate professionals |         11        0.03       19.71
Physical,engineering science associate  |          8        0.03       19.73
Physical,engineering science technician |         52        0.16       19.90
Chemical and physical science technicia |         40        0.13       20.02
          Civil engineering technicians |         60        0.19       20.21
     Electrical engineering technicians |         47        0.15       20.36
Electronics,telecom engineering technic |         70        0.22       20.58
     Mechanical engineering technicians |         68        0.21       20.80
       Chemical engineering technicians |         24        0.08       20.87
   Mining and metallurgical technicians |          7        0.02       20.90
                        Draughtspersons |         65        0.21       21.10
Phys, engin science techn not elsew cla |        145        0.46       21.56
       Computer associate professionals |         52        0.16       21.72
                    Computer assistants |         50        0.16       21.88
           Computer equipment operators |         52        0.16       22.05
           Industrial robot controllers |          9        0.03       22.07
Optical and electronic equipment operat |          1        0.00       22.08
 Photogr,image,sound rec equipment oper |         54        0.17       22.25
Broadcasting,telecom equipment operator |          9        0.03       22.28
            Medical equipment operators |         21        0.07       22.34
Optical,electr equipm oper not elsew cl |          5        0.02       22.36
Ship, aircraft controllers and technici |          6        0.02       22.38
                       Ships' engineers |         10        0.03       22.41
        Ships' deck officers and pilots |         26        0.08       22.49
Aircraft pilots, related associated pro |          8        0.03       22.52
                Air traffic controllers |          5        0.02       22.53
         Air traffic safety technicians |          7        0.02       22.55
          Safety and quality inspectors |          8        0.03       22.58
           Building and fire inspectors |          7        0.02       22.60
  Safety, health and quality inspectors |         70        0.22       22.82
 Life,science and health associate prof |          9        0.03       22.85
Life,science techn and rel associate pr |          2        0.01       22.86
               Life science technicians |         44        0.14       23.00
      Agronomy and forestry technicians |         20        0.06       23.06
          Farming and forestry advisers |          7        0.02       23.08
 Health associate prof (except nursing) |         16        0.05       23.13
                     Medical assistants |         35        0.11       23.24
Hygienists, health environmental office |          7        0.02       23.27
           Dieticians and nutritionists |         10        0.03       23.30
             Optometrists and opticians |         15        0.05       23.35
                      Dental assistants |         33        0.10       23.45
Physiotherapists and rel associate prof |         78        0.25       23.70
                  Veterinary assistants |         12        0.04       23.73
              Pharmaceutical assistants |         44        0.14       23.87
Health ass prof excpt nursing not else  |         64        0.20       24.08
       Nursing midwifery associate prof |          4        0.01       24.09
        Nursing associate professionals |        423        1.34       25.43
      Midwifery associate professionals |         11        0.03       25.46
       Teaching associate professionals |         13        0.04       25.50
Primary education teaching associate pr |        161        0.51       26.01
Pre-primary edu teaching associate prof |        127        0.40       26.41
Special education teaching associate pr |         34        0.11       26.52
 Other teaching associate professionals |        105        0.33       26.85
          Other associate professionals |         26        0.08       26.93
Finance and sales associate professiona |         34        0.11       27.04
Securities and finance dealers and brok |         23        0.07       27.11
              Insurance representatives |         93        0.29       27.41
                          Estate agents |         43        0.14       27.54
      Travel consultants and organisers |         16        0.05       27.59
     Technical and commercial sales rep |        247        0.78       28.37
                                 Buyers |         62        0.20       28.57
    Appraisers, valuers and auctioneers |          9        0.03       28.60
Finance,sales associate prof not else c |        189        0.60       29.20
Business services agents and trade brok |         12        0.04       29.23
                          Trade brokers |         58        0.18       29.42
         Clearing and forwarding agents |         12        0.04       29.46
Employment agents and labour contractor |         16        0.05       29.51
Busines,serv,agnts,trde brokr not else  |         86        0.27       29.78
 Administrative associate professionals |         87        0.28       30.05
Adm secretaries, related associate prof |        390        1.23       31.29
  Legal related business associate prof |         67        0.21       31.50
                            Bookkeepers |        146        0.46       31.96
Statistical, mathemat rel associate pro |          6        0.02       31.98
  Custom,tax,related gov associate prof |         13        0.04       32.02
          Customs and border inspectors |         10        0.03       32.05
    Government tax and excise officials |         43        0.14       32.19
   Government social benefits officials |         37        0.12       32.30
         Government licensing officials |         10        0.03       32.34
Custom,tax,rel gov assoc prof not else  |         64        0.20       32.54
       Police inspectors and detectives |         37        0.12       32.65
    Social work associate professionals |        204        0.64       33.30
Artistic,entertainment,sports associate |          8        0.03       33.32
    Decorators and commercial designers |         74        0.23       33.56
 Radio, television and other announcers |          7        0.02       33.58
Street,nightclub,rel musicians,singers, |         19        0.06       33.64
Clowns,magicians,acrobats, rel associat |          5        0.02       33.66
Athletes,sportspers, related associate  |         45        0.14       33.80
      Religious associate professionals |         16        0.05       33.85
                                 Clerks |         85        0.27       34.12
                          Office clerks |         30        0.09       34.21
Secretaries and keyboard-operating cler |         59        0.19       34.40
              Stenographers and typists |         39        0.12       34.52
   Word-processor and related operators |         20        0.06       34.59
                   Data entry operators |         38        0.12       34.71
          Calculating-machine operators |          7        0.02       34.73
                            Secretaries |        486        1.54       36.26
                       Numerical clerks |         95        0.30       36.57
      Accounting and bookkeeping clerks |        272        0.86       37.42
         Statistical and finance clerks |        138        0.44       37.86
Material-recording and transport clerks |         21        0.07       37.93
                           Stock clerks |        209        0.66       38.59
                      Production clerks |         76        0.24       38.83
                       Transport clerks |         69        0.22       39.05
       Library, mail and related clerks |          2        0.01       39.05
              Library and filing clerks |         50        0.16       39.21
       Mail carriers and sorting clerks |        121        0.38       39.59
Coding, proof-reading and related clerk |         10        0.03       39.63
            Scribes and related workers |         15        0.05       39.67
                    Other office clerks |        788        2.49       42.16
               Customer services clerks |         19        0.06       42.22
   Cashiers, tellers and related clerks |         49        0.15       42.38
             Cashiers and ticket clerks |        129        0.41       42.79
       Tellers and other counter clerks |        132        0.42       43.20
               Bookmakers and croupiers |         10        0.03       43.24
          Pawnbrokers and money-lenders |          1        0.00       43.24
    Debt-collectors and related workers |         12        0.04       43.28
              Client information clerks |         21        0.07       43.34
       Travel agency and related clerks |         25        0.08       43.42
   Receptionists and information clerks |        189        0.60       44.02
        Telephone switchboard operators |         99        0.31       44.33
Service workers,shop, market sales work |          3        0.01       44.34
Personal and protective services worker |          1        0.00       44.34
  Travel attendants and related workers |          3        0.01       44.35
  Travel attendants and travel stewards |         23        0.07       44.43
                   Transport conductors |         30        0.09       44.52
                          Travel guides |         15        0.05       44.57
Housekeeping, restaurant services worke |         66        0.21       44.78
       Housekeepers and related workers |        109        0.34       45.12
                                  Cooks |        331        1.05       46.17
     Waiters, waitresses and bartenders |        443        1.40       47.57
      Personal care and related workers |        205        0.65       48.22
                     Child-care workers |        301        0.95       49.17
Institution-based personal care workers |        366        1.16       50.33
       Home-based personal care workers |        176        0.56       50.88
Personal care,related workers not else  |         79        0.25       51.13
        Other personal services workers |          7        0.02       51.15
Hairdress,barber,beautician, related wo |        204        0.64       51.80
                  Companions and valets |          9        0.03       51.83
              Undertakers and embalmers |          6        0.02       51.85
Other pers service workers not else cla |         55        0.17       52.02
            Protective services workers |          4        0.01       52.03
                          Fire-fighters |         44        0.14       52.17
                        Police officers |        111        0.35       52.52
                          Prison guards |         17        0.05       52.58
Protective services workers not else cl |         75        0.24       52.81
 Models, salespersons and demonstrators |         13        0.04       52.85
               Fashion and other models |          4        0.01       52.87
Shop,stall,market salespers, demonstrat |      1,570        4.96       57.83
Skilled agricultural and fishery worker |          1        0.00       57.83
Skilled agricultural and fishery worker |         60        0.19       58.02
      Market gardeners and crop growers |          8        0.03       58.05
       Field crop and vegetable growers |        464        1.47       59.52
Gardeners, horticultural, nursery growe |        209        0.66       60.18
   Animal producers and related workers |          2        0.01       60.18
          Dairy and livestock producers |        160        0.51       60.69
                      Poultry producers |         12        0.04       60.73
Animal prod, related workers not else c |         29        0.09       60.82
              Crop and animal producers |        242        0.76       61.58
           Forestry and related workers |         18        0.06       61.64
           Forestry workers and loggers |         10        0.03       61.67
   Charcoal burners and related workers |          3        0.01       61.68
  Fishery workers, hunters and trappers |         11        0.03       61.72
       Aquatic-life cultivation workers |          3        0.01       61.72
Inland and coastal waters fishery worke |          9        0.03       61.75
               Deep-sea fishery workers |          2        0.01       61.76
                   Hunters and trappers |          1        0.00       61.76
       Craft and related trades workers |         22        0.07       61.83
 Extraction and building trades workers |          4        0.01       61.84
Miners,shotfirers, stone cutters, carve |          1        0.00       61.85
              Miners and quarry workers |         13        0.04       61.89
                Shotfirers and blasters |          3        0.01       61.90
   Stone splitters, cutters and carvers |         13        0.04       61.94
Building frame and related trades worke |         14        0.04       61.98
                               Builders |         69        0.22       62.20
            Bricklayers and stonemasons |        218        0.69       62.89
Concrete placer,concrete finisher, rel  |         36        0.11       63.00
                 Carpenters and joiners |        190        0.60       63.61
Build frame, rel trade worker not else  |         56        0.18       63.78
Build finishers, related trades workers |          8        0.03       63.81
                                Roofers |         25        0.08       63.89
          Floor layers and tile setters |         40        0.13       64.01
                             Plasterers |         31        0.10       64.11
                     Insulation workers |         15        0.05       64.16
                               Glaziers |         16        0.05       64.21
              Plumbers and pipe fitters |        120        0.38       64.59
      Building and related electricians |        135        0.43       65.02
Build finisher,rel trde work not else c |         15        0.05       65.06
Painter,building struct cleaner,rel trd |          6        0.02       65.08
           Painters and related workers |        156        0.49       65.58
            Building structure cleaners |          9        0.03       65.60
Metal, machinery related trades workers |         26        0.08       65.69
Metalm,welder,sheetmet,structmet prep,r |         32        0.10       65.79
          Metal moulders and coremakers |         11        0.03       65.82
               Welders and flamecutters |         94        0.30       66.12
                    Sheet-metal workers |         60        0.19       66.31
Structural-metal preparers and erectors |         49        0.15       66.46
             Riggers and cable splicers |          8        0.03       66.49
Blacksmiths,tool-makers,related trad wo |          2        0.01       66.49
Blacksmith, hammer-smith,forging-press  |         37        0.12       66.61
        Tool-makers and related workers |        106        0.34       66.95
Machine-tool setters and setter-operato |         71        0.22       67.17
Metal wheelgrinder, polisher, tool shar |          9        0.03       67.20
        Machinery mechanics and fitters |         77        0.24       67.44
    Motor vehicle mechanics and fitters |        231        0.73       68.17
  Aircraft engine mechanics and fitters |         11        0.03       68.21
Agric- or industrmachine mechanic and f |        114        0.36       68.57
Electric,electronic equip mech and fitt |         28        0.09       68.66
Electric mechanic, fitters and servicer |        122        0.39       69.04
Electronic mecanic, fitters and service |         67        0.21       69.25
Telegraph, teleph installers and servic |         40        0.13       69.38
Electric line install,repairer,cable jo |         33        0.10       69.49
Precision,handicraft,printing,rel trade |          2        0.01       69.49
Precision workers in metal and rel mate |          2        0.01       69.50
Precision-instrument makers and repaire |         30        0.09       69.59
   Musical instrument makers and tuners |          3        0.01       69.60
   Jewellery and precious-metal workers |         18        0.06       69.66
Potters,glass-makers, related trades wo |          5        0.02       69.68
Abrasive wheel former,potter and rel wo |          6        0.02       69.69
Glass-makers,cutters,grinders and finis |         14        0.04       69.74
            Glass engravers and etchers |          1        0.00       69.74
Glass,ceramics and rel decorative paint |         13        0.04       69.78
Handicrft work wood,textile,leather,rel |          7        0.02       69.80
Handicrft work in wood and related mate |          8        0.03       69.83
Handicrft work in textile,leather,rel m |          5        0.02       69.85
Craft printing and related trades worke |          6        0.02       69.86
Compositors,typesetters, related worker |         58        0.18       70.05
         Stereotypers and electrotypers |          4        0.01       70.06
         Printing engravers and etchers |          4        0.01       70.07
       Photographic and related workers |         12        0.04       70.11
        Bookbinders and related workers |         16        0.05       70.16
Silk-screen,block,craft textile printer |         15        0.05       70.21
 Other craft and related trades workers |          7        0.02       70.23
Food processing and related trades work |          8        0.03       70.26
Butchers,fishmongers,related food prepa |         80        0.25       70.51
Bakers,pastry-cooks,confectionery maker |        103        0.33       70.84
                 Dairy products workers |          8        0.03       70.86
Fruit, vegetable and related preservers |          9        0.03       70.89
Tobacco preparers,tobacco products make |          7        0.02       70.91
Wood treaters,cabinet-makers,rel trad w |          4        0.01       70.92
                          Wood treaters |         22        0.07       70.99
      Cabinetmakers and related workers |        136        0.43       71.42
Woodworking machine setter,setter-opera |          9        0.03       71.45
Basketry weavers,brush makers,rel worke |          6        0.02       71.47
 Textile,garment, related trades worker |          9        0.03       71.50
                        Fibre preparers |         11        0.03       71.53
  Weavers, knitters and related workers |         27        0.09       71.62
       Tailors, dressmakers and hatters |        118        0.37       71.99
           Furriers and related workers |          4        0.01       72.00
Textile,leather,rel patternmakers, cutt |         22        0.07       72.07
Sewers, embroiderers and related worker |        125        0.40       72.47
       Upholsterers and related workers |         19        0.06       72.53
 Pelt dressers, tanners and fellmongers |          4        0.01       72.54
        Shoe-makers and related workers |         31        0.10       72.64
Plant and machine operators and assembl |         46        0.15       72.79
 Stationary plant and related operators |         17        0.05       72.84
Mining, mineral-processing-plant operat |          1        0.00       72.84
                 Mining plant operators |          5        0.02       72.86
Mineralore,stone-processing-plant opera |          5        0.02       72.87
Well drillers,borers and related worker |         20        0.06       72.94
       Metal-processing plant operators |         10        0.03       72.97
        Ore and metal furnace operators |          6        0.02       72.99
Metal melters,casters,rolling-mill oper |         18        0.06       73.04
    Metal-heat-treating-plant operators |          7        0.02       73.07
            Metal drawers and extruders |          3        0.01       73.08
Glass, ceramics,related plant operators |          3        0.01       73.09
Glass,ceramics kiln,related machine ope |          6        0.02       73.10
Glass,ceramic,rel plant operat not else |          8        0.03       73.13
Wood-processing, papermaking-plant oper |          4        0.01       73.14
        Wood-processing-plant operators |         31        0.10       73.24
             Paper-pulp plant operators |          3        0.01       73.25
            Papermaking-plant operators |         23        0.07       73.32
    Chemical-processing-plant operators |         15        0.05       73.37
Crush,grind,chemicalmixing machinery op |          2        0.01       73.38
 Chemical-heat-treating-plant operators |          1        0.00       73.38
Chemical,filtering,separating-equip ope |          2        0.01       73.39
Petrol,natural gas refin plant operator |          3        0.01       73.40
Chemicalprocess,plant operat not else c |          6        0.02       73.41
Power-Prod. and related plant operators |          6        0.02       73.43
       Power-production plant operators |          8        0.03       73.46
      Steam-engine and boiler operators |          7        0.02       73.48
Incinerator,watertreatment,rel plant op |          5        0.02       73.50
             Industrial robot operators |         13        0.04       73.54
       Machine operators and assemblers |         17        0.05       73.59
 Metal,mineralproducts machine operator |          5        0.02       73.61
                 Machine-tool operators |         50        0.16       73.77
Cement, other mineral prod machine oper |          7        0.02       73.79
    Chemical-products machine operators |         32        0.10       73.89
Pharmaceutical,toiletry-prod machine op |         13        0.04       73.93
Ammunition,explosive products machine o |          1        0.00       73.93
Metal finish, plating,coatingmachine op |         18        0.06       73.99
Photographic-products machine operators |          2        0.01       74.00
Chemicalprod, machine operat not else c |          6        0.02       74.02
Rubber,plasticproducts machine operator |          5        0.02       74.03
      Rubber-products machine operators |         13        0.04       74.07
     Plastic-products machine operators |         33        0.10       74.18
        Wood-products machine operators |         22        0.07       74.25
Printing,binding,paperprod machine oper |          3        0.01       74.26
             Printing-machine operators |         35        0.11       74.37
          Bookbinding-machine operators |          2        0.01       74.37
       Paper-products machine operators |         12        0.04       74.41
Textile,fur,leatherprod machine operato |         11        0.03       74.45
Fibreprep,spinning winding-machine oper |         35        0.11       74.56
Weaving- and knitting-machine operators |         27        0.09       74.64
               Sewing-machine operators |         88        0.28       74.92
Bleaching,dyeing,cleaning-machine opera |         34        0.11       75.03
         Fur,leatherprep machine operat |          2        0.01       75.03
Shoemaking- and related machine operato |          7        0.02       75.06
Textl,fur,leatherprod mach operat n els |         27        0.09       75.14
 Food,related products machine operator |         20        0.06       75.20
     Meat, fishprocess machine operator |         28        0.09       75.29
       Dairy-products machine operators |         15        0.05       75.34
Grain- and spice-milling-machine operat |          8        0.03       75.37
Baked g,cereal,chocolateprod machine op |         19        0.06       75.43
Fruit,vegetable,nutprocess-machine oper |         16        0.05       75.48
     Sugar production machine operators |          3        0.01       75.49
Tea, coffee, cocoaprocess-machine opera |          2        0.01       75.49
Brewer,wine, other beverage machine ope |         13        0.04       75.53
   Tobacco production machine operators |          5        0.02       75.55
                             Assemblers |         35        0.11       75.66
        Mechanical-machinery assemblers |         67        0.21       75.87
        Electrical-equipment assemblers |         48        0.15       76.02
        Electronic-equipment assemblers |         31        0.10       76.12
   Metal,rubber,plastic-prod assemblers |         15        0.05       76.17
   Wood and related products assemblers |          8        0.03       76.19
          Composite products assemblers |          1        0.00       76.20
    Other machine operat not else class |        151        0.48       76.67
     Drivers and mobile plant operators |          5        0.02       76.69
Locomotive engine drivers,related worke |          5        0.02       76.71
              Locomotive engine drivers |         26        0.08       76.79
Railway brakers, signallers and shunter |         20        0.06       76.85
                  Motor vehicle drivers |         43        0.14       76.99
              Car, taxi and van drivers |        141        0.45       77.43
                   Bus and tram drivers |        124        0.39       77.82
          Heavy truck and lorry drivers |        239        0.76       78.58
Agricultural,other mobile plant operato |         17        0.05       78.63
Motorised farm, forestry plant operator |         19        0.06       78.69
Earth-moving  and related plant operato |         49        0.15       78.85
Crane, hoist and related plant operator |         41        0.13       78.98
                Lifting-truck operators |         65        0.21       79.18
  Ships' deck crews and related workers |         18        0.06       79.24
                 Elementary occupations |         45        0.14       79.38
Sales and services elementary occupatio |         33        0.10       79.49
     Street vendors and related workers |          6        0.02       79.51
                         Street vendors |         22        0.07       79.58
Door-to-door and telephone salespersons |         30        0.09       79.67
Shoe cleaning,other streetserv element  |          1        0.00       79.67
Domestic,related helpers,cleaner,launde |        121        0.38       80.06
          Domestic helpers and cleaners |        297        0.94       81.00
Helper,cleaner in office,hotel,other es |        732        2.31       83.31
           Hand-launderers and pressers |         42        0.13       83.44
Building caretakers,window, rel cleaner |          4        0.01       83.45
                    Building caretakers |        169        0.53       83.99
   Vehicle, window and related cleaners |         18        0.06       84.05
Messengers,porters doorkeepers,rel work |         12        0.04       84.08
Messengers,package,luggage porter, deli |        139        0.44       84.52
Doorkeepers,watchpersons,related worker |         80        0.25       84.78
Vendingm,money collect, meter reader,re |          4        0.01       84.79
Garbage collectors and related labourer |          6        0.02       84.81
                     Garbage collectors |         18        0.06       84.86
         Sweepers and related labourers |         25        0.08       84.94
 Agricultural,fishery,related labourers |          4        0.01       84.96
 Agricultural,fishery,related labourers |         20        0.06       85.02
               Farm-hands and labourers |        232        0.73       85.75
                     Forestry labourers |          7        0.02       85.77
Fishery, hunting and trapping labourers |         21        0.07       85.84
Labourer mining,construction,manufact,t |         17        0.05       85.89
      Mining and construction labourers |          3        0.01       85.90
         Mining and quarrying labourers |          7        0.02       85.93
Constr,mainten labour: roads,dams,sim c |         99        0.31       86.24
        Building construction labourers |        103        0.33       86.57
                Manufacturing labourers |        373        1.18       87.74
Transport laborers and freight handlers |        188        0.59       88.34
                         Not applicable |      2,999        9.48       97.82
                                Refusal |         80        0.25       98.07
                             Don't know |         12        0.04       98.11
                              No answer |        598        1.89      100.00
----------------------------------------+-----------------------------------
                                  Total |     31,634      100.00

. 
. recode iscoco (66666 77777 88888 99999=-9), copyrest gen(isco_mainjob)
(3689 differences between iscoco and isco_mainjob)

. label variable isco_mainjob "Current occupation of respondent - isco88 4-digit"

. tab isco_mainjob

    Current |
 occupation |
         of |
 respondent |
   - isco88 |
    4-digit |      Freq.     Percent        Cum.
------------+-----------------------------------
         -9 |      3,689       11.66       11.66
        100 |        131        0.41       12.08
       1100 |          6        0.02       12.09
       1110 |         28        0.09       12.18
       1140 |          1        0.00       12.19
       1142 |          6        0.02       12.21
       1143 |          5        0.02       12.22
       1200 |          7        0.02       12.24
       1210 |        189        0.60       12.84
       1220 |         99        0.31       13.15
       1221 |          4        0.01       13.17
       1222 |         76        0.24       13.41
       1223 |         26        0.08       13.49
       1224 |         55        0.17       13.66
       1225 |         29        0.09       13.75
       1226 |         30        0.09       13.85
       1227 |         43        0.14       13.98
       1228 |         17        0.05       14.04
       1229 |         89        0.28       14.32
       1230 |          7        0.02       14.34
       1231 |        145        0.46       14.80
       1232 |         60        0.19       14.99
       1233 |        154        0.49       15.48
       1234 |         20        0.06       15.54
       1235 |         24        0.08       15.62
       1236 |         28        0.09       15.70
       1237 |         39        0.12       15.83
       1239 |        126        0.40       16.23
       1300 |         32        0.10       16.33
       1310 |         29        0.09       16.42
       1311 |         45        0.14       16.56
       1312 |         40        0.13       16.69
       1313 |         83        0.26       16.95
       1314 |        323        1.02       17.97
       1315 |        169        0.53       18.51
       1316 |         43        0.14       18.64
       1317 |         71        0.22       18.87
       1318 |         32        0.10       18.97
       1319 |        100        0.32       19.28
       2000 |         18        0.06       19.34
       2100 |          1        0.00       19.34
       2110 |          2        0.01       19.35
       2111 |          8        0.03       19.37
       2112 |          2        0.01       19.38
       2113 |         34        0.11       19.49
       2114 |          8        0.03       19.51
       2121 |          2        0.01       19.52
       2122 |          5        0.02       19.54
       2130 |         34        0.11       19.64
       2131 |        177        0.56       20.20
       2139 |         78        0.25       20.45
       2140 |         26        0.08       20.53
       2141 |         75        0.24       20.77
       2142 |         68        0.21       20.98
       2143 |         28        0.09       21.07
       2144 |         37        0.12       21.19
       2145 |         46        0.15       21.33
       2146 |         17        0.05       21.39
       2147 |          4        0.01       21.40
       2148 |         13        0.04       21.44
       2149 |         90        0.28       21.73
       2210 |          7        0.02       21.75
       2211 |         22        0.07       21.82
       2212 |          7        0.02       21.84
       2213 |         20        0.06       21.90
       2220 |          4        0.01       21.92
       2221 |        160        0.51       22.42
       2222 |         31        0.10       22.52
       2223 |         13        0.04       22.56
       2224 |         26        0.08       22.64
       2229 |         41        0.13       22.77
       2230 |        192        0.61       23.38
       2300 |         57        0.18       23.56
       2310 |        148        0.47       24.03
       2320 |        468        1.48       25.51
       2330 |         55        0.17       25.68
       2331 |        265        0.84       26.52
       2332 |         68        0.21       26.73
       2340 |         41        0.13       26.86
       2350 |         30        0.09       26.96
       2351 |         21        0.07       27.02
       2352 |         10        0.03       27.06
       2359 |         98        0.31       27.37
       2400 |         15        0.05       27.41
       2410 |         11        0.03       27.45
       2411 |        167        0.53       27.98
       2412 |         65        0.21       28.18
       2419 |        204        0.64       28.83
       2420 |         16        0.05       28.88
       2421 |         55        0.17       29.05
       2422 |         10        0.03       29.08
       2429 |         35        0.11       29.19
       2430 |          5        0.02       29.21
       2431 |         16        0.05       29.26
       2432 |         32        0.10       29.36
       2440 |          5        0.02       29.38
       2441 |         48        0.15       29.53
       2442 |         14        0.04       29.57
       2443 |          9        0.03       29.60
       2444 |         31        0.10       29.70
       2445 |         40        0.13       29.83
       2446 |        122        0.39       30.21
       2450 |          5        0.02       30.23
       2451 |         98        0.31       30.54
       2452 |         41        0.13       30.67
       2453 |         29        0.09       30.76
       2454 |          6        0.02       30.78
       2455 |         30        0.09       30.87
       2460 |         31        0.10       30.97
       2470 |        115        0.36       31.33
       3000 |         11        0.03       31.37
       3100 |          8        0.03       31.39
       3110 |         52        0.16       31.56
       3111 |         40        0.13       31.68
       3112 |         60        0.19       31.87
       3113 |         47        0.15       32.02
       3114 |         70        0.22       32.24
       3115 |         68        0.21       32.46
       3116 |         24        0.08       32.53
       3117 |          7        0.02       32.56
       3118 |         65        0.21       32.76
       3119 |        145        0.46       33.22
       3120 |         52        0.16       33.38
       3121 |         50        0.16       33.54
       3122 |         52        0.16       33.71
       3123 |          9        0.03       33.74
       3130 |          1        0.00       33.74
       3131 |         54        0.17       33.91
       3132 |          9        0.03       33.94
       3133 |         21        0.07       34.00
       3139 |          5        0.02       34.02
       3140 |          6        0.02       34.04
       3141 |         10        0.03       34.07
       3142 |         26        0.08       34.15
       3143 |          8        0.03       34.18
       3144 |          5        0.02       34.19
       3145 |          7        0.02       34.22
       3150 |          8        0.03       34.24
       3151 |          7        0.02       34.26
       3152 |         70        0.22       34.49
       3200 |          9        0.03       34.51
       3210 |          2        0.01       34.52
       3211 |         44        0.14       34.66
       3212 |         20        0.06       34.72
       3213 |          7        0.02       34.74
       3220 |         16        0.05       34.79
       3221 |         35        0.11       34.91
       3222 |          7        0.02       34.93
       3223 |         10        0.03       34.96
       3224 |         15        0.05       35.01
       3225 |         33        0.10       35.11
       3226 |         78        0.25       35.36
       3227 |         12        0.04       35.40
       3228 |         44        0.14       35.53
       3229 |         64        0.20       35.74
       3230 |          4        0.01       35.75
       3231 |        423        1.34       37.09
       3232 |         11        0.03       37.12
       3300 |         13        0.04       37.16
       3310 |        161        0.51       37.67
       3320 |        127        0.40       38.07
       3330 |         34        0.11       38.18
       3340 |        105        0.33       38.51
       3400 |         26        0.08       38.59
       3410 |         34        0.11       38.70
       3411 |         23        0.07       38.77
       3412 |         93        0.29       39.07
       3413 |         43        0.14       39.20
       3414 |         16        0.05       39.26
       3415 |        247        0.78       40.04
       3416 |         62        0.20       40.23
       3417 |          9        0.03       40.26
       3419 |        189        0.60       40.86
       3420 |         12        0.04       40.90
       3421 |         58        0.18       41.08
       3422 |         12        0.04       41.12
       3423 |         16        0.05       41.17
       3429 |         86        0.27       41.44
       3430 |         87        0.28       41.71
       3431 |        390        1.23       42.95
       3432 |         67        0.21       43.16
       3433 |        146        0.46       43.62
       3434 |          6        0.02       43.64
       3440 |         13        0.04       43.68
       3441 |         10        0.03       43.71
       3442 |         43        0.14       43.85
       3443 |         37        0.12       43.97
       3444 |         10        0.03       44.00
       3449 |         64        0.20       44.20
       3450 |         37        0.12       44.32
       3460 |        204        0.64       44.96
       3470 |          8        0.03       44.99
       3471 |         74        0.23       45.22
       3472 |          7        0.02       45.24
       3473 |         19        0.06       45.30
       3474 |          5        0.02       45.32
       3475 |         45        0.14       45.46
       3480 |         16        0.05       45.51
       4000 |         85        0.27       45.78
       4100 |         30        0.09       45.87
       4110 |         59        0.19       46.06
       4111 |         39        0.12       46.18
       4112 |         20        0.06       46.25
       4113 |         38        0.12       46.37
       4114 |          7        0.02       46.39
       4115 |        486        1.54       47.93
       4120 |         95        0.30       48.23
       4121 |        272        0.86       49.09
       4122 |        138        0.44       49.52
       4130 |         21        0.07       49.59
       4131 |        209        0.66       50.25
       4132 |         76        0.24       50.49
       4133 |         69        0.22       50.71
       4140 |          2        0.01       50.71
       4141 |         50        0.16       50.87
       4142 |        121        0.38       51.25
       4143 |         10        0.03       51.29
       4144 |         15        0.05       51.33
       4190 |        788        2.49       53.82
       4200 |         19        0.06       53.89
       4210 |         49        0.15       54.04
       4211 |        129        0.41       54.45
       4212 |        132        0.42       54.87
       4213 |         10        0.03       54.90
       4214 |          1        0.00       54.90
       4215 |         12        0.04       54.94
       4220 |         21        0.07       55.00
       4221 |         25        0.08       55.08
       4222 |        189        0.60       55.68
       4223 |         99        0.31       55.99
       5000 |          3        0.01       56.00
       5100 |          1        0.00       56.01
       5110 |          3        0.01       56.02
       5111 |         23        0.07       56.09
       5112 |         30        0.09       56.18
       5113 |         15        0.05       56.23
       5120 |         66        0.21       56.44
       5121 |        109        0.34       56.78
       5122 |        331        1.05       57.83
       5123 |        443        1.40       59.23
       5130 |        205        0.65       59.88
       5131 |        301        0.95       60.83
       5132 |        366        1.16       61.99
       5133 |        176        0.56       62.54
       5139 |         79        0.25       62.79
       5140 |          7        0.02       62.82
       5141 |        204        0.64       63.46
       5142 |          9        0.03       63.49
       5143 |          6        0.02       63.51
       5149 |         55        0.17       63.68
       5160 |          4        0.01       63.69
       5161 |         44        0.14       63.83
       5162 |        111        0.35       64.18
       5163 |         17        0.05       64.24
       5169 |         75        0.24       64.47
       5200 |         13        0.04       64.52
       5210 |          4        0.01       64.53
       5220 |      1,570        4.96       69.49
       6000 |          1        0.00       69.49
       6100 |         60        0.19       69.68
       6110 |          8        0.03       69.71
       6111 |        464        1.47       71.18
       6112 |        209        0.66       71.84
       6120 |          2        0.01       71.84
       6121 |        160        0.51       72.35
       6122 |         12        0.04       72.39
       6129 |         29        0.09       72.48
       6130 |        242        0.76       73.24
       6140 |         18        0.06       73.30
       6141 |         10        0.03       73.33
       6142 |          3        0.01       73.34
       6150 |         11        0.03       73.38
       6151 |          3        0.01       73.39
       6152 |          9        0.03       73.41
       6153 |          2        0.01       73.42
       6154 |          1        0.00       73.42
       7000 |         22        0.07       73.49
       7100 |          4        0.01       73.51
       7110 |          1        0.00       73.51
       7111 |         13        0.04       73.55
       7112 |          3        0.01       73.56
       7113 |         13        0.04       73.60
       7120 |         14        0.04       73.65
       7121 |         69        0.22       73.86
       7122 |        218        0.69       74.55
       7123 |         36        0.11       74.67
       7124 |        190        0.60       75.27
       7129 |         56        0.18       75.44
       7130 |          8        0.03       75.47
       7131 |         25        0.08       75.55
       7132 |         40        0.13       75.67
       7133 |         31        0.10       75.77
       7134 |         15        0.05       75.82
       7135 |         16        0.05       75.87
       7136 |        120        0.38       76.25
       7137 |        135        0.43       76.68
       7139 |         15        0.05       76.72
       7140 |          6        0.02       76.74
       7141 |        156        0.49       77.24
       7143 |          9        0.03       77.26
       7200 |         26        0.08       77.35
       7210 |         32        0.10       77.45
       7211 |         11        0.03       77.48
       7212 |         94        0.30       77.78
       7213 |         60        0.19       77.97
       7214 |         49        0.15       78.12
       7215 |          8        0.03       78.15
       7220 |          2        0.01       78.16
       7221 |         37        0.12       78.27
       7222 |        106        0.34       78.61
       7223 |         71        0.22       78.83
       7224 |          9        0.03       78.86
       7230 |         77        0.24       79.10
       7231 |        231        0.73       79.83
       7232 |         11        0.03       79.87
       7233 |        114        0.36       80.23
       7240 |         28        0.09       80.32
       7241 |        122        0.39       80.70
       7242 |         67        0.21       80.92
       7244 |         40        0.13       81.04
       7245 |         33        0.10       81.15
       7300 |          2        0.01       81.15
       7310 |          2        0.01       81.16
       7311 |         30        0.09       81.25
       7312 |          3        0.01       81.26
       7313 |         18        0.06       81.32
       7320 |          5        0.02       81.34
       7321 |          6        0.02       81.36
       7322 |         14        0.04       81.40
       7323 |          1        0.00       81.40
       7324 |         13        0.04       81.44
       7330 |          7        0.02       81.47
       7331 |          8        0.03       81.49
       7332 |          5        0.02       81.51
       7340 |          6        0.02       81.53
       7341 |         58        0.18       81.71
       7342 |          4        0.01       81.72
       7343 |          4        0.01       81.73
       7344 |         12        0.04       81.77
       7345 |         16        0.05       81.82
       7346 |         15        0.05       81.87
       7400 |          7        0.02       81.89
       7410 |          8        0.03       81.92
       7411 |         80        0.25       82.17
       7412 |        103        0.33       82.50
       7413 |          8        0.03       82.52
       7414 |          9        0.03       82.55
       7416 |          7        0.02       82.57
       7420 |          4        0.01       82.59
       7421 |         22        0.07       82.65
       7422 |        136        0.43       83.08
       7423 |          9        0.03       83.11
       7424 |          6        0.02       83.13
       7430 |          9        0.03       83.16
       7431 |         11        0.03       83.20
       7432 |         27        0.09       83.28
       7433 |        118        0.37       83.65
       7434 |          4        0.01       83.67
       7435 |         22        0.07       83.74
       7436 |        125        0.40       84.13
       7437 |         19        0.06       84.19
       7441 |          4        0.01       84.20
       7442 |         31        0.10       84.30
       8000 |         46        0.15       84.45
       8100 |         17        0.05       84.50
       8110 |          1        0.00       84.50
       8111 |          5        0.02       84.52
       8112 |          5        0.02       84.54
       8113 |         20        0.06       84.60
       8120 |         10        0.03       84.63
       8121 |          6        0.02       84.65
       8122 |         18        0.06       84.71
       8123 |          7        0.02       84.73
       8124 |          3        0.01       84.74
       8130 |          3        0.01       84.75
       8131 |          6        0.02       84.77
       8139 |          8        0.03       84.79
       8140 |          4        0.01       84.80
       8141 |         31        0.10       84.90
       8142 |          3        0.01       84.91
       8143 |         23        0.07       84.98
       8150 |         15        0.05       85.03
       8151 |          2        0.01       85.04
       8152 |          1        0.00       85.04
       8153 |          2        0.01       85.05
       8155 |          3        0.01       85.06
       8159 |          6        0.02       85.08
       8160 |          6        0.02       85.10
       8161 |          8        0.03       85.12
       8162 |          7        0.02       85.14
       8163 |          5        0.02       85.16
       8170 |         13        0.04       85.20
       8200 |         17        0.05       85.25
       8210 |          5        0.02       85.27
       8211 |         50        0.16       85.43
       8212 |          7        0.02       85.45
       8220 |         32        0.10       85.55
       8221 |         13        0.04       85.59
       8222 |          1        0.00       85.59
       8223 |         18        0.06       85.65
       8224 |          2        0.01       85.66
       8229 |          6        0.02       85.68
       8230 |          5        0.02       85.69
       8231 |         13        0.04       85.73
       8232 |         33        0.10       85.84
       8240 |         22        0.07       85.91
       8250 |          3        0.01       85.92
       8251 |         35        0.11       86.03
       8252 |          2        0.01       86.03
       8253 |         12        0.04       86.07
       8260 |         11        0.03       86.11
       8261 |         35        0.11       86.22
       8262 |         27        0.09       86.30
       8263 |         88        0.28       86.58
       8264 |         34        0.11       86.69
       8265 |          2        0.01       86.69
       8266 |          7        0.02       86.72
       8269 |         27        0.09       86.80
       8270 |         20        0.06       86.87
       8271 |         28        0.09       86.95
       8272 |         15        0.05       87.00
       8273 |          8        0.03       87.03
       8274 |         19        0.06       87.09
       8275 |         16        0.05       87.14
       8276 |          3        0.01       87.15
       8277 |          2        0.01       87.15
       8278 |         13        0.04       87.19
       8279 |          5        0.02       87.21
       8280 |         35        0.11       87.32
       8281 |         67        0.21       87.53
       8282 |         48        0.15       87.68
       8283 |         31        0.10       87.78
       8284 |         15        0.05       87.83
       8285 |          8        0.03       87.85
       8287 |          1        0.00       87.86
       8290 |        151        0.48       88.34
       8300 |          5        0.02       88.35
       8310 |          5        0.02       88.37
       8311 |         26        0.08       88.45
       8312 |         20        0.06       88.51
       8320 |         43        0.14       88.65
       8322 |        141        0.45       89.09
       8323 |        124        0.39       89.49
       8324 |        239        0.76       90.24
       8330 |         17        0.05       90.30
       8331 |         19        0.06       90.36
       8332 |         49        0.15       90.51
       8333 |         41        0.13       90.64
       8334 |         65        0.21       90.85
       8340 |         18        0.06       90.90
       9000 |         45        0.14       91.04
       9100 |         33        0.10       91.15
       9110 |          6        0.02       91.17
       9111 |         22        0.07       91.24
       9113 |         30        0.09       91.33
       9120 |          1        0.00       91.34
       9130 |        121        0.38       91.72
       9131 |        297        0.94       92.66
       9132 |        732        2.31       94.97
       9133 |         42        0.13       95.10
       9140 |          4        0.01       95.12
       9141 |        169        0.53       95.65
       9142 |         18        0.06       95.71
       9150 |         12        0.04       95.75
       9151 |        139        0.44       96.18
       9152 |         80        0.25       96.44
       9153 |          4        0.01       96.45
       9160 |          6        0.02       96.47
       9161 |         18        0.06       96.53
       9162 |         25        0.08       96.60
       9200 |          4        0.01       96.62
       9210 |         20        0.06       96.68
       9211 |        232        0.73       97.41
       9212 |          7        0.02       97.44
       9213 |         21        0.07       97.50
       9300 |         17        0.05       97.56
       9310 |          3        0.01       97.57
       9311 |          7        0.02       97.59
       9312 |         99        0.31       97.90
       9313 |        103        0.33       98.23
       9320 |        373        1.18       99.41
       9330 |        188        0.59      100.00
------------+-----------------------------------
      Total |     31,634      100.00

. 
. **** Recode employment status for respondents
. 
. tab emplrel

            Employment relation |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     22,718       71.82       71.82
                  Self-employed |      3,882       12.27       84.09
Working for own family business |        386        1.22       85.31
                 Not applicable |      2,999        9.48       94.79
                        Refusal |         46        0.15       94.93
                     Don't know |         71        0.22       95.16
                      No answer |      1,532        4.84      100.00
--------------------------------+-----------------------------------
                          Total |     31,634      100.00

. 
. recode emplrel (6 7 8 9=9), copyrest gen(emplrel_r)
(3116 differences between emplrel and emplrel_r)

. replace emplrel_r=-9 if cntry=="FR" & (essround==1 | essround==2) // Replace this command line with [SYNTAX A] or [SYNT
> AX C]
(1503 real changes made)

. replace emplrel_r=-9 if cntry=="HU" & essround==2 // Replace this command line with [SYNTAX E]
(0 real changes made)

. label define emplrel_r ///
> 1 "Employee" ///
> 2 "Self-employed" ///
> 3 "Working for own family business" ///
> 9 "Missing"

. label value emplrel_r emplrel_r

. tab emplrel_r

  RECODE of emplrel (Employment |
                      relation) |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                             -9 |      1,503        4.75        4.75
                       Employee |     22,718       71.82       76.57
                  Self-employed |      3,882       12.27       88.84
Working for own family business |        386        1.22       90.06
                        Missing |      3,145        9.94      100.00
--------------------------------+-----------------------------------
                          Total |     31,634      100.00

. 
. tab emplno

     Number of |
     employees |
    respondent |
       has/had |      Freq.     Percent        Cum.
---------------+-----------------------------------
             0 |      2,186        6.91        6.91
             1 |        430        1.36        8.27
             2 |        301        0.95        9.22
             3 |        214        0.68        9.90
             4 |        128        0.40       10.30
             5 |        117        0.37       10.67
             6 |         54        0.17       10.84
             7 |         33        0.10       10.95
             8 |         39        0.12       11.07
             9 |         21        0.07       11.14
            10 |         48        0.15       11.29
            11 |          7        0.02       11.31
            12 |         19        0.06       11.37
            13 |         10        0.03       11.40
            14 |          5        0.02       11.42
            15 |         20        0.06       11.48
            16 |          6        0.02       11.50
            17 |          4        0.01       11.51
            18 |          6        0.02       11.53
            19 |          2        0.01       11.54
            20 |         28        0.09       11.63
            22 |          2        0.01       11.63
            23 |          2        0.01       11.64
            24 |          2        0.01       11.65
            25 |         16        0.05       11.70
            28 |          2        0.01       11.70
            30 |         14        0.04       11.75
            33 |          1        0.00       11.75
            35 |          7        0.02       11.77
            36 |          1        0.00       11.78
            38 |          1        0.00       11.78
            40 |          4        0.01       11.79
            42 |          2        0.01       11.80
            43 |          1        0.00       11.80
            45 |          1        0.00       11.80
            46 |          1        0.00       11.81
            47 |          2        0.01       11.81
            49 |          1        0.00       11.82
            50 |          4        0.01       11.83
            52 |          2        0.01       11.84
            57 |          1        0.00       11.84
            60 |          6        0.02       11.86
            64 |          2        0.01       11.86
            70 |          2        0.01       11.87
            75 |          1        0.00       11.87
            85 |          1        0.00       11.88
            88 |          4        0.01       11.89
           100 |          6        0.02       11.91
           130 |          1        0.00       11.91
           136 |          1        0.00       11.91
           140 |          2        0.01       11.92
           150 |          2        0.01       11.93
           180 |          1        0.00       11.93
           200 |          2        0.01       11.94
           267 |          1        0.00       11.94
           300 |          2        0.01       11.95
           350 |          1        0.00       11.95
           400 |          1        0.00       11.95
           450 |          1        0.00       11.96
           500 |          2        0.01       11.96
          1200 |          1        0.00       11.96
Not applicable |     26,181       82.76       94.73
       Refusal |         42        0.13       94.86
    Don't know |        180        0.57       95.43
     No answer |      1,446        4.57      100.00
---------------+-----------------------------------
         Total |     31,634      100.00

. 
. recode emplno (0 66666 77777 88888 99999=0)(1/9=1)(10/10000=2), gen(emplno_r)
(29018 differences between emplno and emplno_r)

. label define emplno_r ///
> 0 "0 employees" ///
> 1 "1-9 employees" ///
> 2 "10+ employees"

. label value emplno_r emplno_r

. tab emplno_r

    RECODE of |
       emplno |
   (Number of |
    employees |
   respondent |
     has/had) |      Freq.     Percent        Cum.
--------------+-----------------------------------
  0 employees |     30,035       94.95       94.95
1-9 employees |      1,337        4.23       99.17
10+ employees |        262        0.83      100.00
--------------+-----------------------------------
        Total |     31,634      100.00

. 
. 
. gen selfem_mainjob=.
(31634 missing values generated)

. replace selfem_mainjob=1 if emplrel_r==1 | emplrel_r==9
(25863 real changes made)

. replace selfem_mainjob=2 if emplrel_r==2 & emplno_r==0
(2340 real changes made)

. replace selfem_mainjob=2 if emplrel_r==3
(386 real changes made)

. replace selfem_mainjob=3 if emplrel_r==2 & emplno_r==1
(1295 real changes made)

. replace selfem_mainjob=4 if emplrel_r==2 & emplno_r==2
(247 real changes made)

. label variable selfem_mainjob "Employment status for respondants"

. label define selfem_mainjob ///
> 1 "Not self-employed" ///
> 2 "Self-empl without employees" ///
> 3 "Self-empl with 1-9 employees" ///
> 4 "Self-empl with 10 or more"

. label value selfem_mainjob selfem_mainjob

. tab selfem_mainjob

       Employment status for |
                 respondants |      Freq.     Percent        Cum.
-----------------------------+-----------------------------------
           Not self-employed |     25,863       85.84       85.84
 Self-empl without employees |      2,726        9.05       94.88
Self-empl with 1-9 employees |      1,295        4.30       99.18
   Self-empl with 10 or more |        247        0.82      100.00
-----------------------------+-----------------------------------
                       Total |     30,131      100.00

. 
. 
. 
. * Create Oesch class schema for respondents
. 
. 
. gen class16_r = -9

. 
. * Large employers (1)
. 
. replace class16_r=1 if selfem_mainjob==4
(247 real changes made)

. 
. 
. * Self-employed professionals (2)
. 
. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2000 & isco_mainjob <= 2229) 
(187 real changes made)

. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2300 & isco_mainjob <= 2470)
(274 real changes made)

. 
. * Small business owners with employees (3)
. 
. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(369 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(678 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob == 2230)
(0 real changes made)

. 
. * Small business owners without employees (4)
. 
. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(288 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(1939 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob == 2230)
(5 real changes made)

. 
. * Technical experts (5)
. 
. replace class16_r=5 if (selfem_mainjob==1) & (isco_mainjob >= 2100 & isco_mainjob <= 2213)
(650 real changes made)

. 
. * Technicians (6)
. 
. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3100 & isco_mainjob <= 3152)
(841 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3210 & isco_mainjob <= 3213)
(71 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob == 3434)
(5 real changes made)

. 
. * Skilled manual (7)
. 
. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 6000 & isco_mainjob <= 7442)
(3090 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8310 & isco_mainjob <= 8312)
(47 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8324 & isco_mainjob <= 8330)
(217 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8332 & isco_mainjob <= 8340)
(164 real changes made)

. 
. * Low-skilled manual (8)
. 
. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8000 & isco_mainjob <= 8300)
(1199 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8320 & isco_mainjob <= 8321)
(40 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob == 8331)
(18 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 9153 & isco_mainjob <= 9333)
(1000 real changes made)

. 
. * Higher-grade managers and administrators (9)
. 
. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 1000 & isco_mainjob <= 1239)
(1048 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 2400 & isco_mainjob <= 2429)
(420 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2441)
(44 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2470)
(97 real changes made)

. 
. * Lower-grade managers and administrators (10)
. 
. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 1300 & isco_mainjob <= 1319)
(347 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3400 & isco_mainjob <= 3433)
(1306 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3440 & isco_mainjob <= 3450)
(195 real changes made)

. 
. * Skilled clerks (11)
. 
. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4000 & isco_mainjob <= 4112)
(216 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4114 & isco_mainjob <= 4210)
(2215 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4212 & isco_mainjob <= 4222)
(359 real changes made)

. 
. * Unskilled clerks (12)
. 
. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4113)
(32 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4211)
(115 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4223)
(87 real changes made)

. 
. * Socio-cultural professionals (13)
. 
. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2220 &  isco_mainjob <= 2229)
(175 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2300 &  isco_mainjob <= 2320)
(608 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2340 &  isco_mainjob <= 2359)
(161 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2430 &  isco_mainjob <= 2440)
(54 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2442 &  isco_mainjob <= 2443)
(16 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2445)
(24 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2451)
(73 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2460)
(28 real changes made)

. 
. * Socio-cultural semi-professionals (14)
. 
. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2230)
(187 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2330 & isco_mainjob <= 2332)
(368 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2444)
(21 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2446 & isco_mainjob <= 2450)
(118 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2452 & isco_mainjob <= 2455)
(58 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3200)
(9 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3220 & isco_mainjob <= 3224)
(74 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3226)
(48 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3229 & isco_mainjob <= 3340)
(853 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3460 & isco_mainjob <= 3472)
(229 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3480)
(16 real changes made)

. 
. * Skilled service (15)
. 
. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 3225)
(31 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3227 & isco_mainjob <= 3228)
(48 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3473 & isco_mainjob <= 3475)
(40 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5000 & isco_mainjob <= 5113)
(68 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5122)
(284 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5131 & isco_mainjob <= 5132)
(573 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5140 & isco_mainjob <= 5141)
(111 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5143)
(4 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5160 & isco_mainjob <= 5220)
(1546 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 8323)
(108 real changes made)

. 
. * Low-skilled service (16)
. 
. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5120 & isco_mainjob <= 5121)
(165 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5123 & isco_mainjob <= 5130)
(580 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5133 & isco_mainjob <= 5139)
(230 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5142)
(9 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5149)
(39 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5230)
(0 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 8322)
(88 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 9100 &  isco_mainjob <= 9152)
(1552 real changes made)

. 
. mvdecode class16_r, mv(-9)
   class16_r: 5228 missing values generated

. label variable class16_r "Respondent's Oesch class position - 16 classes"

. label define class16_r ///
> 1 "Large employers" ///
> 2 "Self-employed professionals" ///
> 3 "Small business owners with employees" ///
> 4 "Small business owners without employees" ///
> 5 "Technical experts" ///
> 6 "Technicians" ///
> 7 "Skilled manual" ///
> 8 "Low-skilled manual" ///
> 9 "Higher-grade managers and administrators" ///
> 10 "Lower-grade managers and administrators" ///
> 11 "Skilled clerks" ///
> 12 "Unskilled clerks" ///
> 13 "Socio-cultural professionals" ///
> 14 "Socio-cultural semi-professionals" ///
> 15 "Skilled service" ///
> 16 "Low-skilled service"

. label value class16_r class16_r

. tab class16_r

 Respondent's Oesch class position - 16 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                        Large employers |        247        0.94        0.94
            Self-employed professionals |        461        1.75        2.68
   Small business owners with employees |      1,047        3.97        6.65
Small business owners without employees |      2,232        8.45       15.10
                      Technical experts |        650        2.46       17.56
                            Technicians |        917        3.47       21.03
                         Skilled manual |      3,518       13.32       34.36
                     Low-skilled manual |      2,257        8.55       42.90
Higher-grade managers and administrator |      1,609        6.09       49.00
Lower-grade managers and administrators |      1,848        7.00       55.99
                         Skilled clerks |      2,790       10.57       66.56
                       Unskilled clerks |        234        0.89       67.45
           Socio-cultural professionals |      1,139        4.31       71.76
      Socio-cultural semi-professionals |      1,981        7.50       79.26
                        Skilled service |      2,813       10.65       89.92
                    Low-skilled service |      2,663       10.08      100.00
----------------------------------------+-----------------------------------
                                  Total |     26,406      100.00

. 
. recode class16_r (1 2=1)(3 4=2)(5 6=3)(7 8=4)(9 10=5)(11 12=6)(13 14=7)(15 16=8), gen(class8_r)
(26159 differences between class16_r and class8_r)

. label variable class8_r "Respondent's Oesch class position - 8 classes"

. label define class8_r ///
> 1 "Self-employed professionals and large employers" ///
> 2 "Small business owners" ///
> 3 "Technical (semi-)professionals" ///
> 4 "Production workers" ///
> 5 "(Associate) managers" ///
> 6 "Clerks" ///
> 7 "Socio-cultural (semi-)professionals" ///
> 8 "Service workers"

. label value class8_r class8_r

. tab class8_r

  Respondent's Oesch class position - 8 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Self-employed professionals and large e |        708        2.68        2.68
                  Small business owners |      3,279       12.42       15.10
         Technical (semi-)professionals |      1,567        5.93       21.03
                     Production workers |      5,775       21.87       42.90
                   (Associate) managers |      3,457       13.09       55.99
                                 Clerks |      3,024       11.45       67.45
    Socio-cultural (semi-)professionals |      3,120       11.82       79.26
                        Service workers |      5,476       20.74      100.00
----------------------------------------+-----------------------------------
                                  Total |     26,406      100.00

. 
. 
. *** Aggregated sector variable (from Rommel and Walter)
. * Creation of variable
. gen sector=.
(31634 missing values generated)

. replace sector=1 if nace==1 | nace==2 | nace==5
(1549 real changes made)

. replace sector=2 if nace==10 | nace==11 | nace==12 | nace==13 | nace==14
(170 real changes made)

. replace sector=3 if nace==15 | nace==16 | nace==17 | nace==18 | nace==19 | nace==20 ///
>          | nace==21 | nace==22 | nace==23 | nace==24 | nace==25 | nace==26 | nace==27 ///
>          | nace==28 | nace==29 | nace==30 | nace==31 | nace==32 | nace==33 | nace==34 ///
>          | nace==35 | nace==36 | nace==37
(4857 real changes made)

. replace sector=4 if nace==40 | nace==41
(270 real changes made)

. replace sector=5 if nace==45
(1828 real changes made)

. replace sector=6 if nace==50 | nace==51 | nace==52 | nace==55
(4848 real changes made)

. replace sector=7 if nace==60 | nace==61 | nace==62 | nace==63 | nace==64
(1651 real changes made)

. replace sector=8 if nace==65 | nace==66 | nace==67 | nace==70 | nace==71 | nace==72 ///
>          | nace==73 | nace==74
(3260 real changes made)

. replace sector=9 if nace==75 | nace==80 | nace==85 | nace==90 | nace==91 | nace==92 ///
>          | nace==93 | nace==95 | nace==99
(9181 real changes made)

. lab var sector "Aggregated sector variable"

. * Definition of value label
. lab define sector 1 "Agriculture, hunting, forestry and fishing" ///
>         2 "Mining and quarrying" ///
>         3 "Manufacturing" ///
>         4 "Electricity, gas and water" ///
>         5 "Construction" ///
>         6 "Wholesale and retail trade and restaurants and hotels" ///
>         7 "Transport, storage and communications" ///
>         8 "Financing, insurance, real estate and busines services" ///
>         9 "Community, social and personal services"

. lab values sector sector

. 
. 
. 
. *** Creation of modernization loser variable 1 : routine service (class 16)
. * Creation of variable
. gen mod_losers1=.
(31634 missing values generated)

. replace mod_losers1 =1 if class16_r==16
(2663 real changes made)

. replace mod_losers1 =0 if class16_r!=16
(28971 real changes made)

. replace mod_losers1=. if class16_r==.
(5228 real changes made, 5228 to missing)

. 
. lab var mod_losers1 "Modernization losers 1; routine service oesch "

. * Definition of value label
. lab define mod_losers1 1 "mod loser (routine service)" 0 "not loser"

. lab values mod_losers1 mod_losers1

. 
. 
. *** Creation of modernization loser variable 4 : routine and skilled manual (classes 7,8)
. * Creation of variable
. gen mod_losers4=0

. replace mod_losers4 =1 if class16_r==7
(3518 real changes made)

. replace mod_losers4 =1 if class16_r==8
(2257 real changes made)

. replace mod_losers4 =. if class16_r==.
(5228 real changes made, 5228 to missing)

. 
. lab var mod_losers4 "Modernization losers 4; routine and skilled manual oesch "

. * Definition of value label
. lab define mod_losers4 1 "mod loser (routine and skilled manual)" 0 "not loser"

. lab values mod_losers4 mod_losers4

. 
. 
. *** Creation of modernization winner variable 1 : socio-cult prof (13, 14)
. * Creation of variable
. gen mod_winners1=0

. replace mod_winners1 =1 if class16_r==13
(1139 real changes made)

. replace mod_winners1 =1 if class16_r==14
(1981 real changes made)

. replace mod_winners1 =. if class16_r==.
(5228 real changes made, 5228 to missing)

. 
. lab var mod_winners1 "Modernization winners 1; SCP oesch "

. * Definition of value label
. lab define mod_winners1 1 "mod winners (SCP oesch)" 0 "not winner"

. lab values mod_winners1 mod_winners1

. 
. 
. ************************************
. ************************************
. *       1.3 lm status: unempl, temp, involunt parttime
. 
. *** unemployed in last 5 years
. * Creation of variable
. gen unemployed5y=uemp5yr==1

. lab var unemployed5y "Unemployed in last 5 years"

. * Definition of value label
. lab define unemployed5y 1 "unemployed in last 5 years" 0 "other"

. lab values unemployed5y unemployed5y

. 
. 
. *** temporary employed
. * Creation of variable
. gen temp=wrkctr==2

. lab var temp "temporary employed (limited contract)"

. * Definition of value label
. lab define temp 1 "limited contract" 0 "other"

. lab values temp temp

. 
. 
. *** part-time
. * Creation of variable
. gen parttime=wkhct<30

. lab var parttime "parttime employed (<30h)"

. * Definition of value label
. lab define parttime 1 "parttime" 0 "other"

. lab values parttime parttime

. 
. 
. ************************************
. ************************************
. *       1.4 other variables : country dummies, polint, age, age2, income?, gender, sector?
. 
. *** Gender
. * Creation of variable
. gen gender=gndr

. lab var gender "Gender"

. * Recoding of variable and definition of value label
. recode gender (1=0) (2=1)
(gender: 31597 changes made)

. lab define gender 0 "male" 1 "female"

. lab values gender gender

. 
. 
. *** Age
. * Creation of variable
. gen age=2002-yrbrn

. lab var age "Age in years"

. gen age2=age^2

. lab var age2 "Age in years (squared)"

. 
. 
. *** Political interest
. * Creation of variable
. gen polint=polintr

. recode polint (1=4) (2=3) (3=2) (4=1)
(polint: 31547 changes made)

. lab var polint "Interest in politics"

. * Definition of value label
. lab define polint 4 "Very interested" 3 "Quite interested" 2 "Hardly interested" ///
>         1 "Not at all interested"

. lab values polint polint

. 
. *** relative income (difference between respondent class and median class per country)
. gen inc=hinctnt
(3549 missing values generated)

. sum hinctnt if cntry=="AT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2257
25%            6              1       Sum of Wgt.        2257

50%            8                      Mean           32.31546
                        Largest       Std. Dev.       35.9463
75%           77             88
90%           88             88       Variance       1292.136
95%           88             88       Skewness       .6576686
99%           88             88       Kurtosis       1.476834

. replace inc=hinctnt-r(p50) if cntry=="AT"
(2257 real changes made)

. sum hinctnt if cntry=="BE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1899
25%            5              1       Sum of Wgt.        1899

50%            7                      Mean           22.60927
                        Largest       Std. Dev.      31.80042
75%           10             99
90%           88             99       Variance       1011.267
95%           88             99       Skewness       1.486445
99%           99             99       Kurtosis       3.293741

. replace inc=hinctnt-r(p50) if cntry=="BE"
(1899 real changes made)

. sum hinctnt if cntry=="CH", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            5              1
10%            6              1       Obs                2040
25%            8              1       Sum of Wgt.        2040

50%            9                      Mean           24.15196
                        Largest       Std. Dev.      29.81082
75%           11             88
90%           77             88       Variance       888.6851
95%           88             88       Skewness       1.394303
99%           88             88       Kurtosis       3.007592

. replace inc=hinctnt-r(p50) if cntry=="CH"
(2040 real changes made)

. sum hinctnt if cntry=="CZ", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="CZ"
(0 real changes made)

. sum hinctnt if cntry=="DE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2919
25%            6              1       Sum of Wgt.        2919

50%            7                      Mean           21.52998
                        Largest       Std. Dev.      29.74815
75%           10             88
90%           77             88       Variance       884.9524
95%           88             88       Skewness       1.512059
99%           88             88       Kurtosis       3.350708

. replace inc=hinctnt-r(p50) if cntry=="DE"
(2919 real changes made)

. sum hinctnt if cntry=="DK", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              2
10%            5              2       Obs                1506
25%            6              2       Sum of Wgt.        1506

50%            9                      Mean           18.77357
                        Largest       Std. Dev.      27.38426
75%           10             99
90%           77             99       Variance       749.8975
95%           88             99       Skewness       2.061361
99%           99             99       Kurtosis       5.364511

. replace inc=hinctnt-r(p50) if cntry=="DK"
(1506 real changes made)

. sum hinctnt if cntry=="EE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="EE"
(0 real changes made)

. sum hinctnt if cntry=="ES", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            3              1       Obs                1729
25%            4              1       Sum of Wgt.        1729

50%            7                      Mean           34.98785
                        Largest       Std. Dev.      36.86191
75%           77             88
90%           88             88       Variance         1358.8
95%           88             88       Skewness       .4197287
99%           88             88       Kurtosis       1.213805

. replace inc=hinctnt-r(p50) if cntry=="ES"
(1729 real changes made)

. sum hinctnt if cntry=="FI", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              3
 5%            4              3
10%            4              3       Obs                2000
25%            5              3       Sum of Wgt.        2000

50%            7                      Mean            14.8795
                        Largest       Std. Dev.          24.5
75%            9             88
90%           77             88       Variance       600.2501
95%           88             88       Skewness       2.570949
99%           88             99       Kurtosis       7.698445

. replace inc=hinctnt-r(p50) if cntry=="FI"
(2000 real changes made)

. sum hinctnt if cntry=="FR", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="FR"
(0 real changes made)

. sum hinctnt if cntry=="GB", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            4              1       Obs                2052
25%            5              1       Sum of Wgt.        2052

50%            8                      Mean           16.87768
                        Largest       Std. Dev.      25.87773
75%           10             88
90%           77             88       Variance       669.6569
95%           88             88       Skewness       2.181306
99%           88             88       Kurtosis       5.878698

. replace inc=hinctnt-r(p50) if cntry=="GB"
(2052 real changes made)

. sum hinctnt if cntry=="GR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2566
25%            4              1       Sum of Wgt.        2566

50%            5                      Mean            25.8788
                        Largest       Std. Dev.      34.06688
75%           77             88
90%           77             88       Variance       1160.553
95%           88             99       Skewness       .9809375
99%           88             99       Kurtosis       2.007143

. replace inc=hinctnt-r(p50) if cntry=="GR"
(2566 real changes made)

. sum hinctnt if cntry=="HU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="HU"
(0 real changes made)

. sum hinctnt if cntry=="IE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IE"
(0 real changes made)

. sum hinctnt if cntry=="IL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IL"
(0 real changes made)

. sum hinctnt if cntry=="IS", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IS"
(0 real changes made)

. sum hinctnt if cntry=="IT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1207
25%            5              1       Sum of Wgt.        1207

50%            9                      Mean           40.83844
                        Largest       Std. Dev.      37.10341
75%           77             88
90%           88             88       Variance       1376.663
95%           88             88       Skewness       .1312757
99%           88             88       Kurtosis       1.059757

. replace inc=hinctnt-r(p50) if cntry=="IT"
(1207 real changes made)

. sum hinctnt if cntry=="LU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="LU"
(0 real changes made)

. sum hinctnt if cntry=="NL", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2364
25%            6              1       Sum of Wgt.        2364

50%            7                      Mean           16.93147
                        Largest       Std. Dev.      25.72437
75%            9             88
90%           77             88       Variance       661.7431
95%           88             88       Skewness        2.17034
99%           88             88       Kurtosis       5.812482

. replace inc=hinctnt-r(p50) if cntry=="NL"
(2364 real changes made)

. sum hinctnt if cntry=="NO", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            5              1       Obs                2036
25%            7              1       Sum of Wgt.        2036

50%            9                      Mean           10.57269
                        Largest       Std. Dev.      13.71393
75%           10             88
90%           11             88       Variance       188.0719
95%           12             88       Skewness       5.182572
99%           88             88       Kurtosis       28.77703

. replace inc=hinctnt-r(p50) if cntry=="NO"
(2036 real changes made)

. sum hinctnt if cntry=="PL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PL"
(0 real changes made)

. sum hinctnt if cntry=="PT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            2              1       Obs                1511
25%            4              1       Sum of Wgt.        1511

50%            5                      Mean           30.29583
                        Largest       Std. Dev.      39.28453
75%           77             99
90%           99             99       Variance       1543.275
95%           99             99       Skewness       .8966914
99%           99             99       Kurtosis       1.876871

. replace inc=hinctnt-r(p50) if cntry=="PT"
(1511 real changes made)

. sum hinctnt if cntry=="SE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            4              1
10%            4              1       Obs                1999
25%            6              1       Sum of Wgt.        1999

50%            7                      Mean           12.16808
                        Largest       Std. Dev.      19.84264
75%            9             88
90%           10             99       Variance       393.7305
95%           88             99       Skewness       3.451157
99%           88             99       Kurtosis       13.10213

. replace inc=hinctnt-r(p50) if cntry=="SE"
(1999 real changes made)

. sum hinctnt if cntry=="SI", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SI"
(0 real changes made)

. sum hinctnt if cntry=="SK", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SK"
(0 real changes made)

. lab var inc "Income, difference between respondet class and median class per country"

. 
. ************************************
. ************************************
. *       1.5 Party choice and participation (Rommel&Walter)
. 
. *** Partisan preference, last election (not classified parties are missings)
. * Creation of variable
. gen party_vote=.
(31634 missing values generated)

. label var party_vote "Partisan preference, last election"

. * Austria
. replace   party_vote=3         if        prtvtat== 1
(493 real changes made)

. replace   party_vote=5         if        prtvtat== 2
(534 real changes made)

. replace   party_vote=7         if        prtvtat== 3
(76 real changes made)

. replace   party_vote=1         if        prtvtat== 4
(233 real changes made)

. replace   party_vote=4         if        prtvtat== 5
(15 real changes made)

. replace   party_vote=0         if        prtvtat== 6
(20 real changes made)

. 
. * Belgium
. replace   party_vote=1         if        prtvtbe== 1
(91 real changes made)

. replace   party_vote=5         if        prtvtbe== 2
(247 real changes made)

. replace   party_vote=3         if        prtvtbe== 3
(139 real changes made)

. replace   party_vote=4         if        prtvtbe== 5
(234 real changes made)

. replace   party_vote=0         if        prtvtbe== 6
(45 real changes made)

. replace   party_vote=.         if        prtvtbe== 7
(0 real changes made)

. replace   party_vote=7         if        prtvtbe== 8
(78 real changes made)

. replace   party_vote=.         if        prtvtbe== 9
(0 real changes made)

. replace   party_vote=1         if        prtvtbe== 11
(58 real changes made)

. replace   party_vote=5         if        prtvtbe== 12
(56 real changes made)

. replace   party_vote=4         if        prtvtbe== 13
(89 real changes made)

. replace   party_vote=3         if        prtvtbe== 14
(129 real changes made)

. replace   party_vote=7         if        prtvtbe== 15
(6 real changes made)

. replace   party_vote=.         if        prtvtbe== 16
(0 real changes made)

. replace   party_vote=0         if        prtvtbe== 17
(21 real changes made)

. * Switzerland
. replace   party_vote=4         if        prtvtch== 1
(141 real changes made)

. replace   party_vote=5         if        prtvtch== 2
(108 real changes made)

. replace   party_vote=3         if        prtvtch== 3
(285 real changes made)

. replace   party_vote=7         if        prtvtch== 4
(173 real changes made)

. replace   party_vote=4         if        prtvtch== 5
(34 real changes made)

. replace   party_vote=4         if        prtvtch== 6
(4 real changes made)

. replace   party_vote=5         if        prtvtch== 7
(20 real changes made)

. replace   party_vote=.         if        prtvtch== 8
(0 real changes made)

. replace   party_vote=2         if        prtvtch== 9
(6 real changes made)

. replace   party_vote=1         if        prtvtch== 10
(60 real changes made)

. replace   party_vote=5         if        prtvtch== 11
(2 real changes made)

. replace   party_vote=7         if        prtvtch== 12
(6 real changes made)

. replace   party_vote=7         if        prtvtch== 13
(4 real changes made)

. replace   party_vote=.         if        prtvtch== 14
(0 real changes made)

. replace   party_vote=7         if        prtvtch== 15
(1 real change made)

. replace   party_vote=0         if        prtvtch== 16
(71 real changes made)

. * Germany
. replace   party_vote=3         if        prtvde1== 1
(878 real changes made)

. replace   party_vote=5         if        prtvde1== 2
(752 real changes made)

. replace   party_vote=1         if        prtvde1== 3
(146 real changes made)

. replace   party_vote=4         if        prtvde1== 4
(82 real changes made)

. replace   party_vote=2         if        prtvde1== 5
(124 real changes made)

. replace   party_vote=7         if        prtvde1== 6
(9 real changes made)

. replace   party_vote=0         if        prtvde1== 7
(12 real changes made)

. * Denmark
. replace   party_vote=3         if        prtvtdk== 1
(393 real changes made)

. replace   party_vote=1         if        prtvtdk== 2
(62 real changes made)

. replace   party_vote=6         if        prtvtdk== 3
(91 real changes made)

. replace   party_vote=5         if        prtvtdk== 4
(21 real changes made)

. replace   party_vote=1         if        prtvtdk== 5
(100 real changes made)

. replace   party_vote=7         if        prtvtdk== 6
(94 real changes made)

. replace   party_vote=5         if        prtvtdk== 7
(24 real changes made)

. replace   party_vote=6         if        prtvtdk== 8
(425 real changes made)

. replace   party_vote=7         if        prtvtdk== 9
(9 real changes made)

. replace   party_vote=2         if        prtvtdk== 10
(20 real changes made)

. replace   party_vote=0         if        prtvtdk== 11
(6 real changes made)

. * Spain
. replace   party_vote=6         if        prtvtes== 1
(368 real changes made)

. replace   party_vote=3         if        prtvtes== 2
(364 real changes made)

. replace   party_vote=2         if        prtvtes== 3
(49 real changes made)

. replace   party_vote=6         if        prtvtes== 4
(55 real changes made)

. replace   party_vote=0         if        prtvtes== 5
(12 real changes made)

. replace   party_vote=.         if        prtvtes== 6
(0 real changes made)

. replace   party_vote=0         if        prtvtes== 7
(9 real changes made)

. replace   party_vote=0         if        prtvtes== 8
(2 real changes made)

. replace   party_vote=0         if        prtvtes== 9
(5 real changes made)

. replace   party_vote=0         if        prtvtes== 10
(7 real changes made)

. replace   party_vote=0         if        prtvtes== 11
(7 real changes made)

. replace   party_vote=0         if        prtvtes== 12
(1 real change made)

. replace   party_vote=0         if        prtvtes== 68
(40 real changes made)

. * Finland
. replace   party_vote=6         if        prtvtfi== 1
(237 real changes made)

. replace   party_vote=0         if        prtvtfi== 2
(68 real changes made)

. replace   party_vote=4         if        prtvtfi== 3
(1 real change made)

. replace   party_vote=5         if        prtvtfi== 4
(316 real changes made)

. replace   party_vote=7         if        prtvtfi== 5
(4 real changes made)

. replace   party_vote=5         if        prtvtfi== 6
(33 real changes made)

. replace   party_vote=.         if        prtvtfi== 7
(0 real changes made)

. replace   party_vote=1         if        prtvtfi== 8
(109 real changes made)

. replace   party_vote=3         if        prtvtfi== 9
(335 real changes made)

. replace   party_vote=2         if        prtvtfi== 10
(84 real changes made)

. replace   party_vote=.         if        prtvtfi== 11
(0 real changes made)

. replace   party_vote=.         if        prtvtfi== 12
(0 real changes made)

. replace   party_vote=0         if        prtvtfi== 14
(18 real changes made)

. * France
. replace   party_vote=.         if        prtvtfr== 1
(0 real changes made)

. replace   party_vote=4         if        prtvtfr== 2
(7 real changes made)

. replace   party_vote=7         if        prtvtfr== 3
(48 real changes made)

. replace   party_vote=2         if        prtvtfr== 4
(9 real changes made)

. replace   party_vote=2         if        prtvtfr== 5
(15 real changes made)

. replace   party_vote=2         if        prtvtfr== 6
(5 real changes made)

. replace   party_vote=7         if        prtvtfr== 7
(9 real changes made)

. replace   party_vote=.         if        prtvtfr== 8
(0 real changes made)

. replace   party_vote=2         if        prtvtfr== 9
(36 real changes made)

. replace   party_vote=3         if        prtvtfr== 10
(282 real changes made)

. replace   party_vote=.         if        prtvtfr== 11
(0 real changes made)

. replace   party_vote=6         if        prtvtfr== 12
(192 real changes made)

. replace   party_vote=4         if        prtvtfr== 13
(52 real changes made)

. replace   party_vote=1         if        prtvtfr== 14
(56 real changes made)

. replace   party_vote=.         if        prtvtfr== 15
(0 real changes made)

. replace   party_vote=0         if        prtvtfr== 16
(26 real changes made)

. * Great Britain
. replace   party_vote=6         if        prtvtgb== 1
(386 real changes made)

. replace   party_vote=3         if        prtvtgb== 2
(624 real changes made)

. replace   party_vote=4         if        prtvtgb== 3
(218 real changes made)

. replace   party_vote=0         if        prtvtgb== 4
(25 real changes made)

. replace   party_vote=0         if        prtvtgb== 5
(12 real changes made)

. replace   party_vote=.         if        prtvtgb== 6
(0 real changes made)

. replace   party_vote=0         if        prtvtgb== 7
(15 real changes made)

. replace   party_vote=6         if        prtvtgb== 11
(11 real changes made)

. replace   party_vote=0         if        prtvtgb== 12
(8 real changes made)

. replace   party_vote=2         if        prtvtgb== 13
(3 real changes made)

. replace   party_vote=3         if        prtvtgb== 14
(7 real changes made)

. replace   party_vote=.         if        prtvtgb== 15
(0 real changes made)

. replace   party_vote=.         if        prtvtgb== 17
(0 real changes made)

. replace   party_vote=.         if        prtvtgb== 18
(0 real changes made)

. * Greece
. replace   party_vote=3         if        prtvtgr== 1
(678 real changes made)

. replace   party_vote=6         if        prtvtgr== 2
(528 real changes made)

. replace   party_vote=2         if        prtvtgr== 3
(73 real changes made)

. replace   party_vote=2         if        prtvtgr== 4
(34 real changes made)

. replace   party_vote=3         if        prtvtgr== 5
(11 real changes made)

. replace   party_vote=0         if        prtvtgr== 6
(53 real changes made)

. * Ireland
. replace   party_vote=6         if        prtvtie== 1
(700 real changes made)

. replace   party_vote=5         if        prtvtie== 2
(293 real changes made)

. replace   party_vote=3         if        prtvtie== 3
(165 real changes made)

. replace   party_vote=4         if        prtvtie== 4
(49 real changes made)

. replace   party_vote=1         if        prtvtie== 5
(53 real changes made)

. replace   party_vote=2         if        prtvtie== 6
(58 real changes made)

. replace   party_vote=.         if        prtvtie== 7
(0 real changes made)

. replace   party_vote=0         if        prtvtie== 8
(16 real changes made)

. * Italy
. replace   party_vote=3         if        prtvtit== 1
(167 real changes made)

. replace   party_vote=5         if        prtvtit== 2
(76 real changes made)

. replace   party_vote=2         if        prtvtit== 3
(9 real changes made)

. replace   party_vote=1         if        prtvtit== 4
(16 real changes made)

. replace   party_vote=2         if        prtvtit== 7
(35 real changes made)

. replace   party_vote=6         if        prtvtit== 8
(174 real changes made)

. replace   party_vote=7         if        prtvtit== 9
(65 real changes made)

. replace   party_vote=5         if        prtvtit== 10
(15 real changes made)

. replace   party_vote=7         if        prtvtit== 11
(11 real changes made)

. replace   party_vote=3         if        prtvtit== 12
(6 real changes made)

. replace   party_vote=.         if        prtvtit== 13
(0 real changes made)

. replace   party_vote=0         if        prtvtit== 14
(4 real changes made)

. replace   party_vote=.         if        prtvtit== 15
(0 real changes made)

. replace   party_vote=7         if        prtvtit== 16
(2 real changes made)

. replace   party_vote=0         if        prtvtit== 17
(2 real changes made)

. replace   party_vote=.         if        prtvtit== 70
(0 real changes made)

. * Netherlands
. replace   party_vote=5         if        prtvtnl== 1
(571 real changes made)

. replace   party_vote=3         if        prtvtnl== 2
(334 real changes made)

. replace   party_vote=4         if        prtvtnl== 3
(277 real changes made)

. replace   party_vote=7         if        prtvtnl== 4
(261 real changes made)

. replace   party_vote=4         if        prtvtnl== 5
(109 real changes made)

. replace   party_vote=1         if        prtvtnl== 6
(146 real changes made)

. replace   party_vote=2         if        prtvtnl== 7
(129 real changes made)

. replace   party_vote=5         if        prtvtnl== 8
(45 real changes made)

. replace   party_vote=4         if        prtvtnl== 9
(28 real changes made)

. replace   party_vote=4         if        prtvtnl== 10
(19 real changes made)

. replace   party_vote=0         if        prtvtnl== 11
(7 real changes made)

. * Norway
. replace   party_vote=.         if        prtvtno== 1
(0 real changes made)

. replace   party_vote=2         if        prtvtno== 2
(202 real changes made)

. replace   party_vote=3         if        prtvtno== 3
(378 real changes made)

. replace   party_vote=4         if        prtvtno== 4
(58 real changes made)

. replace   party_vote=5         if        prtvtno== 5
(209 real changes made)

. replace   party_vote=5         if        prtvtno== 6
(93 real changes made)

. replace   party_vote=6         if        prtvtno== 7
(330 real changes made)

. replace   party_vote=7         if        prtvtno== 8
(249 real changes made)

. replace   party_vote=.         if        prtvtno== 9
(0 real changes made)

. replace   party_vote=0         if        prtvtno== 10
(20 real changes made)

. * Portugal
. replace   party_vote=2         if        prtvtpt== 1
(32 real changes made)

. replace   party_vote=5         if        prtvtpt== 2
(34 real changes made)

. replace   party_vote=.         if        prtvtpt== 3
(0 real changes made)

. replace   party_vote=2         if        prtvtpt== 5
(57 real changes made)

. replace   party_vote=.         if        prtvtpt== 6
(0 real changes made)

. replace   party_vote=3         if        prtvtpt== 10
(324 real changes made)

. replace   party_vote=5         if        prtvtpt== 11
(302 real changes made)

. replace   party_vote=0         if        prtvtpt== 12
(1 real change made)

. replace   party_vote=.         if        prtvtpt== 13
(0 real changes made)

. * Sweden
. replace   party_vote=5         if        prtvtse== 1
(93 real changes made)

. replace   party_vote=4         if        prtvtse== 2
(224 real changes made)

. replace   party_vote=5         if        prtvtse== 3
(131 real changes made)

. replace   party_vote=1         if        prtvtse== 4
(65 real changes made)

. replace   party_vote=6         if        prtvtse== 5
(232 real changes made)

. replace   party_vote=3         if        prtvtse== 6
(611 real changes made)

. replace   party_vote=2         if        prtvtse== 7
(144 real changes made)

. replace   party_vote=0         if        prtvtse== 8
(23 real changes made)

. 
. * Definition of value labels
. label def party_vote 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_vote party_vote

. 
. 
. *** Partisan preference, closeness (not classified parties are missings)
. * Creation of variable
. gen party_close=.
(31634 missing values generated)

. label var party_close "Party closeness"

. * Austria
. replace   party_close=3         if        prtclat== 1
(374 real changes made)

. replace   party_close=5         if        prtclat== 2
(328 real changes made)

. replace   party_close=7         if        prtclat== 3
(59 real changes made)

. replace   party_close=1         if        prtclat== 4
(223 real changes made)

. replace   party_close=4         if        prtclat== 5
(8 real changes made)

. replace   party_close=0         if        prtclat== 6
(7 real changes made)

. 
. * Belgium
. replace   party_close=1         if        prtclbe== 1
(74 real changes made)

. replace   party_close=5         if        prtclbe== 2
(134 real changes made)

. replace   party_close=3         if        prtclbe== 3
(105 real changes made)

. replace   party_close=4         if        prtclbe== 5
(115 real changes made)

. replace   party_close=0         if        prtclbe== 6
(6 real changes made)

. replace   party_close=.         if        prtclbe== 7
(0 real changes made)

. replace   party_close=7         if        prtclbe== 8
(58 real changes made)

. replace   party_close=.         if        prtclbe== 9
(0 real changes made)

. replace   party_close=1         if        prtclbe== 11
(61 real changes made)

. replace   party_close=5         if        prtclbe== 12
(44 real changes made)

. replace   party_close=4         if        prtclbe== 13
(108 real changes made)

. replace   party_close=3         if        prtclbe== 14
(66 real changes made)

. replace   party_close=7         if        prtclbe== 15
(3 real changes made)

. replace   party_close=.         if        prtclbe== 16
(0 real changes made)

. replace   party_close=0         if        prtclbe== 17
(0 real changes made)

. * Switzerland
. replace   party_close=4         if        prtclch== 1
(187 real changes made)

. replace   party_close=5         if        prtclch== 2
(97 real changes made)

. replace   party_close=3         if        prtclch== 3
(365 real changes made)

. replace   party_close=7         if        prtclch== 4
(208 real changes made)

. replace   party_close=4         if        prtclch== 5
(36 real changes made)

. replace   party_close=4         if        prtclch== 6
(4 real changes made)

. replace   party_close=5         if        prtclch== 7
(20 real changes made)

. replace   party_close=.         if        prtclch== 8
(0 real changes made)

. replace   party_close=2         if        prtclch== 9
(13 real changes made)

. replace   party_close=1         if        prtclch== 10
(73 real changes made)

. replace   party_close=5         if        prtclch== 11
(0 real changes made)

. replace   party_close=7         if        prtclch== 12
(7 real changes made)

. replace   party_close=7         if        prtclch== 13
(1 real change made)

. replace   party_close=.         if        prtclch== 14
(0 real changes made)

. replace   party_close=7         if        prtclch== 15
(2 real changes made)

. replace   party_close=0         if        prtclch== 16
(13 real changes made)

. * Germany
. replace   party_close=3         if        prtclde== 1
(382 real changes made)

. replace   party_close=5         if        prtclde== 2
(486 real changes made)

. replace   party_close=1         if        prtclde== 3
(173 real changes made)

. replace   party_close=4         if        prtclde== 4
(53 real changes made)

. replace   party_close=2         if        prtclde== 5
(107 real changes made)

. replace   party_close=7         if        prtclde== 6
(9 real changes made)

. replace   party_close=0         if        prtclde== 7
(17 real changes made)

. * Denmark
. replace   party_close=3         if        prtcldk== 1
(342 real changes made)

. replace   party_close=1         if        prtcldk== 2
(59 real changes made)

. replace   party_close=6         if        prtcldk== 3
(65 real changes made)

. replace   party_close=5         if        prtcldk== 4
(7 real changes made)

. replace   party_close=1         if        prtcldk== 5
(102 real changes made)

. replace   party_close=7         if        prtcldk== 6
(47 real changes made)

. replace   party_close=5         if        prtcldk== 7
(21 real changes made)

. replace   party_close=6         if        prtcldk== 8
(271 real changes made)

. replace   party_close=7         if        prtcldk== 9
(1 real change made)

. replace   party_close=2         if        prtcldk== 10
(27 real changes made)

. replace   party_close=0         if        prtcldk== 11
(4 real changes made)

. * Spain
. replace   party_close=6         if        prtcles== 1
(263 real changes made)

. replace   party_close=3         if        prtcles== 2
(331 real changes made)

. replace   party_close=2         if        prtcles== 3
(45 real changes made)

. replace   party_close=6         if        prtcles== 4
(38 real changes made)

. replace   party_close=0         if        prtcles== 5
(12 real changes made)

. replace   party_close=.         if        prtcles== 6
(0 real changes made)

. replace   party_close=0         if        prtcles== 7
(8 real changes made)

. replace   party_close=0         if        prtcles== 8
(1 real change made)

. replace   party_close=0         if        prtcles== 9
(5 real changes made)

. replace   party_close=0         if        prtcles== 10
(5 real changes made)

. replace   party_close=0         if        prtcles== 11
(6 real changes made)

. replace   party_close=0         if        prtcles== 12
(3 real changes made)

. replace   party_close=0         if        prtcles== 68
(18 real changes made)

. * Finland
. replace   party_close=6         if        prtclfi== 1
(176 real changes made)

. replace   party_close=0         if        prtclfi== 2
(54 real changes made)

. replace   party_close=4         if        prtclfi== 3
(4 real changes made)

. replace   party_close=5         if        prtclfi== 4
(244 real changes made)

. replace   party_close=7         if        prtclfi== 5
(3 real changes made)

. replace   party_close=5         if        prtclfi== 6
(37 real changes made)

. replace   party_close=.         if        prtclfi== 7
(0 real changes made)

. replace   party_close=1         if        prtclfi== 8
(143 real changes made)

. replace   party_close=3         if        prtclfi== 9
(261 real changes made)

. replace   party_close=2         if        prtclfi== 10
(71 real changes made)

. replace   party_close=.         if        prtclfi== 11
(0 real changes made)

. replace   party_close=.         if        prtclfi== 12
(0 real changes made)

. replace   party_close=0         if        prtclfi== 14
(9 real changes made)

. * France
. replace   party_close=.         if        prtclfr== 1
(0 real changes made)

. replace   party_close=4         if        prtclfr== 2
(5 real changes made)

. replace   party_close=7         if        prtclfr== 3
(33 real changes made)

. replace   party_close=2         if        prtclfr== 4
(10 real changes made)

. replace   party_close=2         if        prtclfr== 5
(9 real changes made)

. replace   party_close=2         if        prtclfr== 6
(2 real changes made)

. replace   party_close=7         if        prtclfr== 7
(7 real changes made)

. replace   party_close=.         if        prtclfr== 8
(0 real changes made)

. replace   party_close=2         if        prtclfr== 9
(32 real changes made)

. replace   party_close=3         if        prtclfr== 10
(278 real changes made)

. replace   party_close=.         if        prtclfr== 11
(0 real changes made)

. replace   party_close=6         if        prtclfr== 12
(162 real changes made)

. replace   party_close=4         if        prtclfr== 13
(60 real changes made)

. replace   party_close=1         if        prtclfr== 14
(51 real changes made)

. replace   party_close=.         if        prtclfr== 15
(0 real changes made)

. replace   party_close=0         if        prtclfr== 16
(6 real changes made)

. * Great Britain
. replace   party_close=6         if        prtclgb== 1
(280 real changes made)

. replace   party_close=3         if        prtclgb== 2
(472 real changes made)

. replace   party_close=4         if        prtclgb== 3
(162 real changes made)

. replace   party_close=0         if        prtclgb== 4
(22 real changes made)

. replace   party_close=0         if        prtclgb== 5
(8 real changes made)

. replace   party_close=.         if        prtclgb== 6
(0 real changes made)

. replace   party_close=0         if        prtclgb== 7
(16 real changes made)

. replace   party_close=6         if        prtclgb== 11
(8 real changes made)

. replace   party_close=0         if        prtclgb== 12
(11 real changes made)

. replace   party_close=2         if        prtclgb== 13
(4 real changes made)

. replace   party_close=3         if        prtclgb== 14
(1 real change made)

. replace   party_close=.         if        prtclgb== 15
(0 real changes made)

. replace   party_close=.         if        prtclgb== 17
(0 real changes made)

. replace   party_close=.         if        prtclgb== 18
(0 real changes made)

. * Greece
. replace   party_close=3         if        prtclgr== 1
(534 real changes made)

. replace   party_close=6         if        prtclgr== 2
(480 real changes made)

. replace   party_close=2         if        prtclgr== 3
(86 real changes made)

. replace   party_close=2         if        prtclgr== 4
(40 real changes made)

. replace   party_close=3         if        prtclgr== 5
(9 real changes made)

. replace   party_close=0         if        prtclgr== 6
(19 real changes made)

. * Ireland
. replace   party_close=6         if        prtclie== 1
(438 real changes made)

. replace   party_close=5         if        prtclie== 2
(202 real changes made)

. replace   party_close=3         if        prtclie== 3
(124 real changes made)

. replace   party_close=4         if        prtclie== 4
(32 real changes made)

. replace   party_close=1         if        prtclie== 5
(58 real changes made)

. replace   party_close=2         if        prtclie== 6
(37 real changes made)

. replace   party_close=.         if        prtclie== 7
(0 real changes made)

. replace   party_close=0         if        prtclie== 8
(0 real changes made)

. * Italy
. replace   party_close=3         if        prtclit== 1
(120 real changes made)

. replace   party_close=5         if        prtclit== 2
(43 real changes made)

. replace   party_close=2         if        prtclit== 3
(6 real changes made)

. replace   party_close=1         if        prtclit== 4
(12 real changes made)

. replace   party_close=2         if        prtclit== 7
(36 real changes made)

. replace   party_close=6         if        prtclit== 8
(88 real changes made)

. replace   party_close=7         if        prtclit== 9
(56 real changes made)

. replace   party_close=5         if        prtclit== 10
(12 real changes made)

. replace   party_close=7         if        prtclit== 11
(8 real changes made)

. replace   party_close=3         if        prtclit== 12
(5 real changes made)

. replace   party_close=.         if        prtclit== 13
(0 real changes made)

. replace   party_close=0         if        prtclit== 14
(1 real change made)

. replace   party_close=.         if        prtclit== 15
(0 real changes made)

. replace   party_close=7         if        prtclit== 16
(1 real change made)

. replace   party_close=0         if        prtclit== 17
(8 real changes made)

. replace   party_close=.         if        prtclit== 70
(0 real changes made)

. * Netherlands
. replace   party_close=5         if        prtclnl== 1
(406 real changes made)

. replace   party_close=3         if        prtclnl== 2
(276 real changes made)

. replace   party_close=4         if        prtclnl== 3
(223 real changes made)

. replace   party_close=7         if        prtclnl== 4
(97 real changes made)

. replace   party_close=4         if        prtclnl== 5
(51 real changes made)

. replace   party_close=1         if        prtclnl== 6
(105 real changes made)

. replace   party_close=2         if        prtclnl== 7
(130 real changes made)

. replace   party_close=5         if        prtclnl== 8
(43 real changes made)

. replace   party_close=4         if        prtclnl== 9
(3 real changes made)

. replace   party_close=4         if        prtclnl== 10
(17 real changes made)

. replace   party_close=0         if        prtclnl== 11
(14 real changes made)

. * Norway
. replace   party_close=.         if        prtclno== 1
(0 real changes made)

. replace   party_close=2         if        prtclno== 2
(175 real changes made)

. replace   party_close=3         if        prtclno== 3
(313 real changes made)

. replace   party_close=4         if        prtclno== 4
(26 real changes made)

. replace   party_close=5         if        prtclno== 5
(117 real changes made)

. replace   party_close=5         if        prtclno== 6
(66 real changes made)

. replace   party_close=6         if        prtclno== 7
(207 real changes made)

. replace   party_close=7         if        prtclno== 8
(248 real changes made)

. replace   party_close=.         if        prtclno== 9
(0 real changes made)

. replace   party_close=0         if        prtclno== 10
(13 real changes made)

. * Portugal
. replace   party_close=2         if        prtclpt== 1
(43 real changes made)

. replace   party_close=5         if        prtclpt== 2
(31 real changes made)

. replace   party_close=.         if        prtclpt== 3
(0 real changes made)

. replace   party_close=2         if        prtclpt== 5
(68 real changes made)

. replace   party_close=.         if        prtclpt== 6
(0 real changes made)

. replace   party_close=3         if        prtclpt== 10
(368 real changes made)

. replace   party_close=5         if        prtclpt== 11
(318 real changes made)

. replace   party_close=0         if        prtclpt== 12
(1 real change made)

. replace   party_close=.         if        prtclpt== 13
(0 real changes made)

. * Sweden
. replace   party_close=5         if        prtclse== 1
(81 real changes made)

. replace   party_close=4         if        prtclse== 2
(152 real changes made)

. replace   party_close=5         if        prtclse== 3
(100 real changes made)

. replace   party_close=1         if        prtclse== 4
(74 real changes made)

. replace   party_close=6         if        prtclse== 5
(190 real changes made)

. replace   party_close=3         if        prtclse== 6
(560 real changes made)

. replace   party_close=2         if        prtclse== 7
(130 real changes made)

. replace   party_close=0         if        prtclse== 8
(19 real changes made)

. 
. * Definition of value labels
. label def party_close 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_close party_close

. 
. *** Voter participation
. * Creation of variable 
. gen voted=vote==1

. replace voted=. if vote>2
(2315 real changes made, 2315 to missing)

. lab var voted "Voter participation"

. * Definition of value label
. lab define voted 1 "Voter" 0 "Non-voter"

. lab values voted voted

. 
. save "ESSrecoded1.dta", replace
file ESSrecoded1.dta saved

. 
. 
. *----------------------------------------------------------------------------------------*
. *       2. prepare/recode ESS2
. *----------------------------------------------------------------------------------------*
. 
. 
. *----------------------------------------------------------------------------------------*
. *       1. Operationalization of variables, round 2 - 2004
. *----------------------------------------------------------------------------------------*
. 
. * Import dataset (from ESS website)
. use ESS2e03_4.dta

. 
. 
. 
. *       1.0 country selection: 
. * AT, BE, CH, GE, DK, SP, FIN, FR, UK, GR, IE, IT, NL, NO, PT, SE
.  
. drop if cntry=="CZ"
(3026 observations deleted)

. drop if cntry=="HU"
(1498 observations deleted)

. drop if cntry=="LU"
(1635 observations deleted)

. drop if cntry=="PL"
(1716 observations deleted)

. drop if cntry=="SI"
(1442 observations deleted)

. drop if cntry=="IL"
(0 observations deleted)

. drop if cntry=="EE"
(1989 observations deleted)

. drop if cntry=="IS"
(579 observations deleted)

. drop if cntry=="SK"
(1512 observations deleted)

. drop if cntry=="TR"
(1856 observations deleted)

. drop if cntry=="UA"
(2031 observations deleted)

. 
. 
. gen at=cntry=="AT"

. lab var at "Country dummy Austria"

. gen be=cntry=="BE"

. lab var be "Country dummy Belgium"

. gen ch=cntry=="CH"

. lab var ch "Country dummy Switzerland"

. gen de=cntry=="DE"

. lab var de "Country dummy Germany"

. gen dk=cntry=="DK"

. lab var dk "Country dummy Denmark"

. gen es=cntry=="ES"

. lab var es "Country dummy Spain"

. gen fi=cntry=="FI"

. lab var fi "Country dummy Finland"

. gen fr=cntry=="FR"

. lab var fr "Country dummy France"

. gen gb=cntry=="GB"

. lab var gb "Country dummy United Kingdom"

. gen gr=cntry=="GR"

. lab var gr "Country dummy Greece"

. gen ie=cntry=="IE"

. lab var ie "Country dummy Ireland"

. gen it=cntry=="IT"

. lab var it "Country dummy Italy"

. gen nl=cntry=="NL"

. lab var nl "Country dummy Netherlands"

. gen no=cntry=="NO"

. lab var no "Country dummy Norway"

. gen pt=cntry=="PT"

. lab var pt "Country dummy Portugal"

. gen se=cntry=="SE"

. lab var se "Country dummy Sweden"

. 
. 
. *******************************
. *   1.1 GLOBALIZATION LOSERS
. *******************************
. 
. ** from Rommel /Walter: combination of offshoreable and low-skill (educlvl und offshore2)
. 
. * Creation of variable
. gen educyrs=eduyrs

. lab var educyrs "Years of Education"

. * Recoding of variable
. replace educyrs=25 if eduyrs>25 & eduyrs<.
(344 real changes made)

. 
. 
. ***** 2.2 Education level
. *----------------------------------------------------------------------------------------*
. 
. * Creation of variable
. gen educlvl=edulvla

. lab var educlvl "Education level"

. * Recoding of variable and definition of value label
. recode educlvl (55=.)
(educlvl: 114 changes made)

. label define educlvl 1 "Less than lower secondary education" ///
>         2 "Lower secondary education completed" ///
>         3 "Upper secondary education completed" ///
>         4 "Post-secondary, non-tertiary education completed" ///
>         5 "Tertiary education completed"

. label values educlvl educlvl

. 
. 
. *** Creation of 4-digit ISCO-Code
. gen isco=iscoco

. lab var isco "4-digit ISCO-code"

. 
. *** Metric offshoreability variable     
. * Creation of variable
. gen offshore=.
(30253 missing values generated)

. replace offshore=0 if isco<.
(30253 real changes made)

. replace offshore=49 if isco==1142
(7 real changes made)

. replace offshore=55 if isco==1222
(75 real changes made)

. replace offshore=28 if isco==1226
(36 real changes made)

. replace offshore=55 if isco==1228
(20 real changes made)

. replace offshore=83 if isco==1231
(120 real changes made)

. replace offshore=49 if isco==1232
(66 real changes made)

. replace offshore=40 if isco==1233
(111 real changes made)

. replace offshore=53 if isco==1234
(20 real changes made)

. replace offshore=49 if isco==1235
(25 real changes made)

. replace offshore=55 if isco==1236
(31 real changes made)

. replace offshore=55 if isco==1237
(44 real changes made)

. replace offshore=55 if isco==1311
(74 real changes made)

. replace offshore=55 if isco==1312
(65 real changes made)

. replace offshore=55 if isco==1313
(77 real changes made)

. replace offshore=55 if isco==1314
(391 real changes made)

. replace offshore=55 if isco==1315
(140 real changes made)

. replace offshore=48 if isco==1316
(47 real changes made)

. replace offshore=52 if isco==1317
(83 real changes made)

. replace offshore=55 if isco==1318
(40 real changes made)

. replace offshore=55 if isco==1319
(126 real changes made)

. replace offshore=66 if isco==2111
(8 real changes made)

. replace offshore=74 if isco==2112
(2 real changes made)

. replace offshore=66 if isco==2113
(21 real changes made)

. replace offshore=66 if isco==2114
(5 real changes made)

. replace offshore=89 if isco==2121
(12 real changes made)

. replace offshore=96 if isco==2122
(5 real changes made)

. replace offshore=83 if isco==2131
(172 real changes made)

. replace offshore=90 if isco==2139
(75 real changes made)

. replace offshore=25 if isco==2141
(70 real changes made)

. replace offshore=64 if isco==2143
(27 real changes made)

. replace offshore=74 if isco==2144
(34 real changes made)

. replace offshore=72 if isco==2146
(19 real changes made)

. replace offshore=69 if isco==2147
(13 real changes made)

. replace offshore=86 if isco==2148
(12 real changes made)

. replace offshore=71 if isco==2149
(103 real changes made)

. replace offshore=81 if isco==2211
(23 real changes made)

. replace offshore=83 if isco==2212
(7 real changes made)

. replace offshore=72 if isco==2411
(182 real changes made)

. replace offshore=50 if isco==2419
(189 real changes made)

. replace offshore=74 if isco==2421
(68 real changes made)

. replace offshore=67 if isco==2444
(27 real changes made)

. replace offshore=90 if isco==2451
(89 real changes made)

. replace offshore=78 if isco==2452
(48 real changes made)

. replace offshore=25 if isco==2453
(42 real changes made)

. replace offshore=48 if isco==2455
(29 real changes made)

. replace offshore=47 if isco==3111
(45 real changes made)

. replace offshore=47 if isco==3113
(30 real changes made)

. replace offshore=47 if isco==3114
(66 real changes made)

. replace offshore=72 if isco==3115
(77 real changes made)

. replace offshore=47 if isco==3116
(35 real changes made)

. replace offshore=94 if isco==3118
(79 real changes made)

. replace offshore=54 if isco==3119
(144 real changes made)

. replace offshore=75 if isco==3121
(44 real changes made)

. replace offshore=84 if isco==3122
(70 real changes made)

. replace offshore=68 if isco==3123
(2 real changes made)

. replace offshore=36 if isco==3131
(37 real changes made)

. replace offshore=36 if isco==3132
(13 real changes made)

. replace offshore=46 if isco==3133
(8 real changes made)

. replace offshore=34 if isco==3139
(4 real changes made)

. replace offshore=52 if isco==3141
(11 real changes made)

. replace offshore=60 if isco==3152
(97 real changes made)

. replace offshore=55 if isco==3211
(39 real changes made)

. replace offshore=55 if isco==3212
(12 real changes made)

. replace offshore=44 if isco==3213
(6 real changes made)

. replace offshore=32 if isco==3228
(31 real changes made)

. replace offshore=51 if isco==3411
(24 real changes made)

. replace offshore=85 if isco==3412
(66 real changes made)

. replace offshore=50 if isco==3414
(8 real changes made)

. replace offshore=55 if isco==3416
(50 real changes made)

. replace offshore=59 if isco==3419
(165 real changes made)

. replace offshore=51 if isco==3421
(12 real changes made)

. replace offshore=48 if isco==3422
(9 real changes made)

. replace offshore=38 if isco==3431
(398 real changes made)

. replace offshore=51 if isco==3432
(67 real changes made)

. replace offshore=84 if isco==3433
(208 real changes made)

. replace offshore=84 if isco==3434
(9 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=100 if isco==3442
(41 real changes made)

. replace offshore=85 if isco==3471
(58 real changes made)

. replace offshore=30 if isco==3472
(3 real changes made)

. replace offshore=95 if isco==4111
(33 real changes made)

. replace offshore=94 if isco==4112
(15 real changes made)

. replace offshore=100 if isco==4113
(37 real changes made)

. replace offshore=71 if isco==4114
(13 real changes made)

. replace offshore=38 if isco==4115
(472 real changes made)

. replace offshore=84 if isco==4121
(274 real changes made)

. replace offshore=54 if isco==4122
(107 real changes made)

. replace offshore=31 if isco==4131
(211 real changes made)

. replace offshore=67 if isco==4132
(81 real changes made)

. replace offshore=67 if isco==4133
(47 real changes made)

. replace offshore=46 if isco==4141
(42 real changes made)

. replace offshore=26 if isco==4142
(116 real changes made)

. replace offshore=95 if isco==4143
(7 real changes made)

. replace offshore=54 if isco==4144
(3 real changes made)

. replace offshore=54 if isco==4190
(639 real changes made)

. replace offshore=94 if isco==4211
(125 real changes made)

. replace offshore=54 if isco==4214
(0 real changes made)

. replace offshore=65 if isco==4215
(14 real changes made)

. replace offshore=72 if isco==4221
(29 real changes made)

. replace offshore=54 if isco==4222
(233 real changes made)

. replace offshore=50 if isco==4223
(110 real changes made)

. replace offshore=86 if isco==5113
(13 real changes made)

. replace offshore=59 if isco==6142
(1 real change made)

. replace offshore=36 if isco==7111
(18 real changes made)

. replace offshore=35 if isco==7112
(2 real changes made)

. replace offshore=36 if isco==7113
(6 real changes made)

. replace offshore=65 if isco==7211
(10 real changes made)

. replace offshore=69 if isco==7212
(74 real changes made)

. replace offshore=70 if isco==7213
(43 real changes made)

. replace offshore=70 if isco==7222
(49 real changes made)

. replace offshore=68 if isco==7223
(56 real changes made)

. replace offshore=68 if isco==7224
(15 real changes made)

. replace offshore=26 if isco==7311
(35 real changes made)

. replace offshore=64 if isco==7313
(13 real changes made)

. replace offshore=69 if isco==7321
(14 real changes made)

. replace offshore=69 if isco==7322
(13 real changes made)

. replace offshore=68 if isco==7323
(0 real changes made)

. replace offshore=68 if isco==7324
(4 real changes made)

. replace offshore=60 if isco==7331
(12 real changes made)

. replace offshore=75 if isco==7332
(4 real changes made)

. replace offshore=59 if isco==7341
(31 real changes made)

. replace offshore=59 if isco==7342
(3 real changes made)

. replace offshore=59 if isco==7343
(4 real changes made)

. replace offshore=34 if isco==7344
(8 real changes made)

. replace offshore=59 if isco==7345
(12 real changes made)

. replace offshore=75 if isco==7346
(12 real changes made)

. replace offshore=68 if isco==7413
(13 real changes made)

. replace offshore=27 if isco==7414
(3 real changes made)

. replace offshore=55 if isco==7415
(3 real changes made)

. replace offshore=43 if isco==7421
(14 real changes made)

. replace offshore=57 if isco==7422
(97 real changes made)

. replace offshore=57 if isco==7423
(12 real changes made)

. replace offshore=66 if isco==7424
(2 real changes made)

. replace offshore=75 if isco==7431
(3 real changes made)

. replace offshore=75 if isco==7432
(33 real changes made)

. replace offshore=75 if isco==7433
(133 real changes made)

. replace offshore=73 if isco==7434
(6 real changes made)

. replace offshore=75 if isco==7435
(10 real changes made)

. replace offshore=75 if isco==7436
(103 real changes made)

. replace offshore=57 if isco==7437
(23 real changes made)

. replace offshore=75 if isco==7441
(4 real changes made)

. replace offshore=72 if isco==7442
(17 real changes made)

. replace offshore=36 if isco==8111
(2 real changes made)

. replace offshore=36 if isco==8112
(3 real changes made)

. replace offshore=36 if isco==8113
(4 real changes made)

. replace offshore=59 if isco==8121
(8 real changes made)

. replace offshore=68 if isco==8122
(19 real changes made)

. replace offshore=70 if isco==8123
(6 real changes made)

. replace offshore=68 if isco==8124
(1 real change made)

. replace offshore=69 if isco==8131
(5 real changes made)

. replace offshore=68 if isco==8139
(5 real changes made)

. replace offshore=57 if isco==8141
(22 real changes made)

. replace offshore=68 if isco==8142
(5 real changes made)

. replace offshore=68 if isco==8143
(24 real changes made)

. replace offshore=68 if isco==8151
(2 real changes made)

. replace offshore=70 if isco==8152
(1 real change made)

. replace offshore=68 if isco==8153
(1 real change made)

. replace offshore=68 if isco==8154
(1 real change made)

. replace offshore=29 if isco==8155
(2 real changes made)

. replace offshore=68 if isco==8159
(10 real changes made)

. replace offshore=42 if isco==8161
(8 real changes made)

. replace offshore=55 if isco==8162
(7 real changes made)

. replace offshore=29 if isco==8163
(3 real changes made)

. replace offshore=64 if isco==8171
(0 real changes made)

. replace offshore=68 if isco==8172
(0 real changes made)

. replace offshore=68 if isco==8211
(46 real changes made)

. replace offshore=68 if isco==8212
(9 real changes made)

. replace offshore=68 if isco==8221
(10 real changes made)

. replace offshore=35 if isco==8222
(0 real changes made)

. replace offshore=68 if isco==8223
(14 real changes made)

. replace offshore=41 if isco==8224
(2 real changes made)

. replace offshore=29 if isco==8229
(7 real changes made)

. replace offshore=69 if isco==8231
(9 real changes made)

. replace offshore=68 if isco==8232
(33 real changes made)

. replace offshore=57 if isco==8240
(22 real changes made)

. replace offshore=58 if isco==8251
(30 real changes made)

. replace offshore=59 if isco==8252
(1 real change made)

. replace offshore=68 if isco==8253
(10 real changes made)

. replace offshore=75 if isco==8261
(19 real changes made)

. replace offshore=75 if isco==8262
(22 real changes made)

. replace offshore=75 if isco==8263
(73 real changes made)

. replace offshore=75 if isco==8264
(32 real changes made)

. replace offshore=75 if isco==8265
(5 real changes made)

. replace offshore=75 if isco==8266
(13 real changes made)

. replace offshore=75 if isco==8269
(17 real changes made)

. replace offshore=27 if isco==8271
(38 real changes made)

. replace offshore=68 if isco==8272
(9 real changes made)

. replace offshore=68 if isco==8273
(7 real changes made)

. replace offshore=30 if isco==8274
(18 real changes made)

. replace offshore=31 if isco==8275
(7 real changes made)

. replace offshore=68 if isco==8276
(3 real changes made)

. replace offshore=27 if isco==8277
(2 real changes made)

. replace offshore=68 if isco==8278
(11 real changes made)

. replace offshore=66 if isco==8281
(37 real changes made)

. replace offshore=66 if isco==8282
(31 real changes made)

. replace offshore=66 if isco==8283
(18 real changes made)

. replace offshore=68 if isco==8284
(25 real changes made)

. replace offshore=57 if isco==8285
(8 real changes made)

. replace offshore=64 if isco==8286
(3 real changes made)

. replace offshore=68 if isco==8290
(139 real changes made)

. replace offshore=34 if isco==8340
(23 real changes made)

. replace offshore=95 if isco==9113
(14 real changes made)

. replace offshore=64 if isco==9321
(0 real changes made)

. replace offshore=29 if isco==9333
(0 real changes made)

. replace offshore=55 if isco==1227
(60 real changes made)

. replace offshore=89 if isco==2121
(0 real changes made)

. replace offshore=100 if isco==2132
(0 real changes made)

. replace offshore=70 if isco==2145
(59 real changes made)

. replace offshore=71 if isco==2149
(0 real changes made)

. replace offshore=81 if isco==2211
(0 real changes made)

. replace offshore=46 if isco==2412
(49 real changes made)

. replace offshore=50 if isco==2419
(0 real changes made)

. replace offshore=33 if isco==2432
(33 real changes made)

. replace offshore=89 if isco==2441
(35 real changes made)

. replace offshore=48 if isco==2455
(0 real changes made)

. replace offshore=72 if isco==3115
(0 real changes made)

. replace offshore=54 if isco==3119
(0 real changes made)

. replace offshore=46 if isco==3133
(0 real changes made)

. replace offshore=34 if isco==3139
(0 real changes made)

. replace offshore=34 if isco==3224
(9 real changes made)

. replace offshore=51 if isco==3411
(0 real changes made)

. replace offshore=25 if isco==3415
(256 real changes made)

. replace offshore=50 if isco==3417
(16 real changes made)

. replace offshore=59 if isco==3419
(0 real changes made)

. replace offshore=51 if isco==3432
(0 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=90 if isco==3460
(138 real changes made)

. replace offshore=54 if isco==4122
(0 real changes made)

. replace offshore=31 if isco==4131
(0 real changes made)

. replace offshore=67 if isco==4132
(0 real changes made)

. replace offshore=46 if isco==4141
(0 real changes made)

. replace offshore=26 if isco==4142
(0 real changes made)

. replace offshore=54 if isco==4222
(0 real changes made)

. replace offshore=68 if isco==7141
(134 real changes made)

. replace offshore=68 if isco==7224
(0 real changes made)

. replace offshore=65 if isco==7241
(184 real changes made)

. replace offshore=34 if isco==7344
(0 real changes made)

. replace offshore=72 if isco==7442
(0 real changes made)

. replace offshore=68 if isco==8122
(0 real changes made)

. replace offshore=68 if isco==8139
(0 real changes made)

. replace offshore=42 if isco==8161
(0 real changes made)

. replace offshore=68 if isco==8211
(0 real changes made)

. replace offshore=68 if isco==8223
(0 real changes made)

. replace offshore=41 if isco==8224
(0 real changes made)

. replace offshore=57 if isco==8240
(0 real changes made)

. replace offshore=58 if isco==8251
(0 real changes made)

. replace offshore=75 if isco==8269
(0 real changes made)

. replace offshore=66 if isco==8281
(0 real changes made)

. replace offshore=66 if isco==8283
(0 real changes made)

. replace offshore=68 if isco==8284
(0 real changes made)

. replace offshore=68 if isco==8290
(0 real changes made)

. replace offshore=70 if isco==9322
(0 real changes made)

. lab var offshore "Offshoring Potential (Blinder 2007), metric"

. 
. *** Creation of ordinal (4-point scale) offshoreability variable
. * Creation of variable
. gen offshore4=.
(30253 missing values generated)

. replace offshore4=4 if offshore<.
(30253 real changes made)

. replace offshore4=3 if offshore<75
(27941 real changes made)

. replace offshore4=2 if offshore<50
(22501 real changes made)

. replace offshore4=1 if offshore<25
(19990 real changes made)

. lab var offshore4 "Offshoring Potential (Blinder 2007), ordinal"

. * Definition of value label
. lab define offshore4 1 "0-24%" 2 "5-49%" 3 "50-74%" 4 "75-100%"

. lab values offshore4 offshore4

. 
. *** Creation of dichotomous offshoreability variable
. * Creation of variable
. gen offshore2=.
(30253 missing values generated)

. replace offshore2=1 if offshore>0 & offshore<.
(10263 real changes made)

. replace offshore2=0 if offshore==0
(19990 real changes made)

. lab var offshore2 "Offshoring Potential (Blinder 2007), dichotomous"

. * Definition of value label
. lab define offshore2 0 "Not offshoreable" 1 "Offshoreable"

. lab values offshore2 offshore2

. 
. 
. ***********************
. 
. *** Creation of globalization loser variable 1 : low-skilled offshoreable
. * Creation of variable
. gen glob_losers1=.
(30253 missing values generated)

. replace glob_losers1=1 if offshore2==1 & educlvl<3
(2952 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl<3
(8859 real changes made)

. replace glob_losers1=0 if offshore2==1 & educlvl>2
(7311 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl>2
(11131 real changes made)

. lab var glob_losers1 "Globalization losers; lowskilled exposed "

. * Definition of value label
. lab define glob_losers1 1 "glob loser (l-s off)" 0 "not loser"

. lab values glob_losers1 glob_losers1

. 
. 
. *** Creation of winner variable 1: low-skilled sheltered
. * Creation of variable
. gen glob_winners1=.
(30253 missing values generated)

. replace glob_winners1 =0 if offshore2==1 & educlvl<3
(2952 real changes made)

. replace glob_winners1 =1 if offshore2==0 & educlvl<3
(8859 real changes made)

. replace glob_winners1 =0 if offshore2==1 & educlvl>2
(7311 real changes made)

. replace glob_winners1 =0 if offshore2==0 & educlvl>2
(11131 real changes made)

. lab var glob_winners1 "Globalization winners; lowskilled sheltered "

. * Definition of value label
. lab define glob_winners1 1 "glob winners (l-s sheltered)" 0 "not winner"

. lab values glob_winners1 glob_losers1

. 
. 
. 
. ************************************
. *       1.2 MODERNIZATION LOSERS
. 
. * Oesch 16-classes for respondents only (according to syntax on his website)
. 
. ****************************************************************************************
. * Respondent's Oesch class position
. * Recode and create variables used to construct class variable for respondents
. * Variables used to construct class variable for respondents: iscoco, emplrel, emplno
. ****************************************************************************************
. 
. **** Recode occupation variable (isco88 com 4-digit) for respondents
. 
. tab iscoco

               Occupation, ISCO88 (com) |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                           Armed forces |         88        0.29        0.29
Legislators, senior officials and manag |         11        0.04        0.33
       Legislators and senior officials |          5        0.02        0.34
Legislators, senior government official |         26        0.09        0.43
Senior officials of political-party org |          2        0.01        0.44
Senior officials of economic-interest o |          7        0.02        0.46
 Senior off human, special-interest org |          2        0.01        0.47
                     Corporate managers |          8        0.03        0.49
         Directors and chief executives |        131        0.43        0.93
     Production and operations managers |         29        0.10        1.02
Managers agriculture,hunting,forestry,f |         10        0.03        1.05
              Managers in manufacturing |         75        0.25        1.30
               Managers in construction |         41        0.14        1.44
 Managers in wholesale and retail trade |         68        0.22        1.66
     Managers in restaurants and hotels |         40        0.13        1.79
Managers transport,storage,communicatio |         36        0.12        1.91
Managers in business services enterpris |         60        0.20        2.11
Managers personal care,cleaning,rel ser |         20        0.07        2.18
      Managers not elsewhere classified |         98        0.32        2.50
              Other specialist managers |         19        0.06        2.57
   Finance and administration  managers |        120        0.40        2.96
Personnel and industrial relations mana |         66        0.22        3.18
           Sales and marketing managers |        111        0.37        3.55
Advertising and public relations manage |         20        0.07        3.61
      Supply and distribution  managers |         25        0.08        3.70
            Computing services managers |         31        0.10        3.80
      Research and development managers |         44        0.15        3.94
Oth spec managers not elsewhere classif |        138        0.46        4.40
          Managers of small enterprises |         12        0.04        4.44
          Managers of small enterprises |         28        0.09        4.53
Mngr small ent agr,hunting,forestry,fis |         74        0.24        4.78
        Mngr small ent in manufacturing |         65        0.21        4.99
         Mngr small ent in construction |         77        0.25        5.25
Mngr small ent wholesale and retail tra |        391        1.29        6.54
Mngr small ent of restaurants and hotel |        140        0.46        7.00
     Mngr small ent transp,storage,comm |         47        0.16        7.16
Mngr small ent of business serv enterpr |         83        0.27        7.43
Mngr small ent pers care,cleaning,rel s |         40        0.13        7.56
Mngr small ent not elsewhere classified |        126        0.42        7.98
                          Professionals |         16        0.05        8.03
Phys, mathem, engin science professiona |          6        0.02        8.05
Physics, chemists, related professional |          5        0.02        8.07
             Physicists and astronomers |          8        0.03        8.10
                         Meteorologists |          2        0.01        8.10
                               Chemists |         21        0.07        8.17
           Geologists and geophysicists |          5        0.02        8.19
Mathematicians and related professional |         12        0.04        8.23
                          Statisticians |          5        0.02        8.24
                Computing professionals |          8        0.03        8.27
Comp systems designers,analysts,program |        172        0.57        8.84
Comp professionals not elsewhere classi |         75        0.25        9.09
Architects,engineers,related profession |         16        0.05        9.14
  Architects, town and traffic planners |         70        0.23        9.37
                        Civil engineers |         86        0.28        9.66
                   Electrical engineers |         27        0.09        9.74
Electronics, telecommunications enginee |         34        0.11        9.86
                   Mechanical engineers |         59        0.20       10.05
                     Chemical engineers |         19        0.06       10.11
Mining engineers, metall,rel profession |         13        0.04       10.16
            Cartographers and surveyors |         12        0.04       10.20
Arch, engin,rel prof not elsewhere clas |        103        0.34       10.54
  Life science and health professionals |          1        0.00       10.54
             Life science professionals |          4        0.01       10.55
Biol,botan,zool and related professiona |         23        0.08       10.63
Pharm, pathol and related professionals |          7        0.02       10.65
  Agronomists and related professionals |         15        0.05       10.70
                        Medical doctors |        143        0.47       11.18
                               Dentists |         32        0.11       11.28
                          Veterinarians |         16        0.05       11.33
                            Pharmacists |         31        0.10       11.44
Health prof (not nursing) not elsew cla |         30        0.10       11.54
    Nursing and midwifery professionals |        244        0.81       12.34
                 Teaching professionals |         46        0.15       12.49
   Coll,univ, higher educ teaching prof |        113        0.37       12.87
Secondary education teaching profession |        443        1.46       14.33
Primary and pre-primary educ teaching p |          4        0.01       14.35
Primary education teaching professional |        359        1.19       15.53
Pre-primary educ teaching professionals |         68        0.22       15.76
Special education teaching professional |         46        0.15       15.91
           Other teaching professionals |         11        0.04       15.95
          Education methods specialists |         34        0.11       16.06
                      School inspectors |          8        0.03       16.08
Other teaching prof not elsewhere class |         97        0.32       16.40
                    Other professionals |          3        0.01       16.41
                 Business professionals |         12        0.04       16.45
                            Accountants |        182        0.60       17.06
    Personnel and careers professionals |         49        0.16       17.22
 Business prof not elsewhere classified |        189        0.62       17.84
                    Legal professionals |          5        0.02       17.86
                                Lawyers |         68        0.22       18.08
                                 Judges |         19        0.06       18.15
    Legal prof not elsewhere classified |         39        0.13       18.28
   Archiv,libr,related information prof |          5        0.02       18.29
                Archivists and curators |         18        0.06       18.35
    Librarians,related information prof |         33        0.11       18.46
Social science and related professional |          1        0.00       18.46
                             Economists |         35        0.12       18.58
Sociologists, anthropologists, rel prof |          8        0.03       18.61
Philosophers,historians,political scien |         11        0.04       18.64
Philologists, translators and interpret |         27        0.09       18.73
                          Psychologists |         43        0.14       18.87
              Social work professionals |         85        0.28       19.16
Writers and creative or performing arti |         10        0.03       19.19
 Authors, journalists and other writers |         89        0.29       19.48
Sculptors, painters and related artists |         48        0.16       19.64
       Composers, musicians and singers |         42        0.14       19.78
             Choreographers and dancers |          2        0.01       19.79
Film, stage and related actors and dire |         29        0.10       19.88
                Religious professionals |         25        0.08       19.96
Public service administrative professio |         79        0.26       20.23
Technicians and associate professionals |          3        0.01       20.24
Physical,engineering science associate  |          8        0.03       20.26
Physical,engineering science technician |         16        0.05       20.32
Chemical and physical science technicia |         45        0.15       20.46
          Civil engineering technicians |         68        0.22       20.69
     Electrical engineering technicians |         30        0.10       20.79
Electronics,telecom engineering technic |         66        0.22       21.01
     Mechanical engineering technicians |         77        0.25       21.26
       Chemical engineering technicians |         35        0.12       21.38
   Mining and metallurgical technicians |         10        0.03       21.41
                        Draughtspersons |         79        0.26       21.67
Phys, engin science techn not elsew cla |        144        0.48       22.15
       Computer associate professionals |         39        0.13       22.28
                    Computer assistants |         44        0.15       22.42
           Computer equipment operators |         70        0.23       22.65
           Industrial robot controllers |          2        0.01       22.66
 Photogr,image,sound rec equipment oper |         37        0.12       22.78
Broadcasting,telecom equipment operator |         13        0.04       22.82
            Medical equipment operators |          8        0.03       22.85
Optical,electr equipm oper not elsew cl |          4        0.01       22.86
Ship, aircraft controllers and technici |          7        0.02       22.89
                       Ships' engineers |         11        0.04       22.92
        Ships' deck officers and pilots |         25        0.08       23.01
Aircraft pilots, related associated pro |         11        0.04       23.04
                Air traffic controllers |         18        0.06       23.10
         Air traffic safety technicians |          4        0.01       23.12
          Safety and quality inspectors |          6        0.02       23.13
           Building and fire inspectors |          5        0.02       23.15
  Safety, health and quality inspectors |         97        0.32       23.47
 Life,science and health associate prof |          6        0.02       23.49
Life,science techn and rel associate pr |          1        0.00       23.50
               Life science technicians |         39        0.13       23.62
      Agronomy and forestry technicians |         12        0.04       23.66
          Farming and forestry advisers |          6        0.02       23.68
 Health associate prof (except nursing) |          8        0.03       23.71
                     Medical assistants |         24        0.08       23.79
Hygienists, health environmental office |          5        0.02       23.81
           Dieticians and nutritionists |         11        0.04       23.84
             Optometrists and opticians |          9        0.03       23.87
                      Dental assistants |         32        0.11       23.98
Physiotherapists and rel associate prof |         69        0.23       24.21
                  Veterinary assistants |          6        0.02       24.23
              Pharmaceutical assistants |         31        0.10       24.33
Health ass prof excpt nursing not else  |         80        0.26       24.59
       Nursing midwifery associate prof |          6        0.02       24.61
        Nursing associate professionals |        428        1.41       26.03
      Midwifery associate professionals |         14        0.05       26.07
       Teaching associate professionals |          5        0.02       26.09
Primary education teaching associate pr |        136        0.45       26.54
Pre-primary edu teaching associate prof |        129        0.43       26.97
Special education teaching associate pr |         22        0.07       27.04
 Other teaching associate professionals |         78        0.26       27.30
          Other associate professionals |         13        0.04       27.34
Finance and sales associate professiona |         42        0.14       27.48
Securities and finance dealers and brok |         24        0.08       27.56
              Insurance representatives |         66        0.22       27.78
                          Estate agents |         38        0.13       27.90
      Travel consultants and organisers |          8        0.03       27.93
     Technical and commercial sales rep |        256        0.85       28.77
                                 Buyers |         50        0.17       28.94
    Appraisers, valuers and auctioneers |         16        0.05       28.99
Finance,sales associate prof not else c |        165        0.55       29.54
Business services agents and trade brok |          5        0.02       29.55
                          Trade brokers |         12        0.04       29.59
         Clearing and forwarding agents |          9        0.03       29.62
Employment agents and labour contractor |         20        0.07       29.69
Busines,serv,agnts,trde brokr not else  |         50        0.17       29.85
 Administrative associate professionals |         80        0.26       30.12
Adm secretaries, related associate prof |        398        1.32       31.43
  Legal related business associate prof |         67        0.22       31.66
                            Bookkeepers |        208        0.69       32.34
Statistical, mathemat rel associate pro |          9        0.03       32.37
  Custom,tax,related gov associate prof |         22        0.07       32.45
          Customs and border inspectors |          9        0.03       32.48
    Government tax and excise officials |         41        0.14       32.61
   Government social benefits officials |         33        0.11       32.72
         Government licensing officials |          8        0.03       32.75
Custom,tax,rel gov assoc prof not else  |         40        0.13       32.88
       Police inspectors and detectives |         39        0.13       33.01
    Social work associate professionals |        138        0.46       33.46
Artistic,entertainment,sports associate |         17        0.06       33.52
    Decorators and commercial designers |         58        0.19       33.71
 Radio, television and other announcers |          3        0.01       33.72
Street,nightclub,rel musicians,singers, |          9        0.03       33.75
Clowns,magicians,acrobats, rel associat |          3        0.01       33.76
Athletes,sportspers, related associate  |         33        0.11       33.87
      Religious associate professionals |         11        0.04       33.91
                                 Clerks |        121        0.40       34.31
                          Office clerks |        121        0.40       34.71
Secretaries and keyboard-operating cler |         59        0.20       34.90
              Stenographers and typists |         33        0.11       35.01
   Word-processor and related operators |         15        0.05       35.06
                   Data entry operators |         37        0.12       35.18
          Calculating-machine operators |         13        0.04       35.23
                            Secretaries |        472        1.56       36.79
                       Numerical clerks |         46        0.15       36.94
      Accounting and bookkeeping clerks |        274        0.91       37.84
         Statistical and finance clerks |        107        0.35       38.20
Material-recording and transport clerks |         12        0.04       38.24
                           Stock clerks |        211        0.70       38.93
                      Production clerks |         81        0.27       39.20
                       Transport clerks |         47        0.16       39.36
       Library, mail and related clerks |          3        0.01       39.37
              Library and filing clerks |         42        0.14       39.51
       Mail carriers and sorting clerks |        116        0.38       39.89
Coding, proof-reading and related clerk |          7        0.02       39.91
            Scribes and related workers |          3        0.01       39.92
                    Other office clerks |        639        2.11       42.04
               Customer services clerks |         72        0.24       42.27
   Cashiers, tellers and related clerks |         27        0.09       42.36
             Cashiers and ticket clerks |        125        0.41       42.78
       Tellers and other counter clerks |        131        0.43       43.21
               Bookmakers and croupiers |          5        0.02       43.23
    Debt-collectors and related workers |         14        0.05       43.27
              Client information clerks |         20        0.07       43.34
       Travel agency and related clerks |         29        0.10       43.43
   Receptionists and information clerks |        233        0.77       44.20
        Telephone switchboard operators |        110        0.36       44.57
Personal and protective services worker |          7        0.02       44.59
  Travel attendants and related workers |          2        0.01       44.60
  Travel attendants and travel stewards |         13        0.04       44.64
                   Transport conductors |         20        0.07       44.71
                          Travel guides |         13        0.04       44.75
Housekeeping, restaurant services worke |         36        0.12       44.87
       Housekeepers and related workers |         76        0.25       45.12
                                  Cooks |        391        1.29       46.41
     Waiters, waitresses and bartenders |        506        1.67       48.08
      Personal care and related workers |        225        0.74       48.83
                     Child-care workers |        293        0.97       49.80
Institution-based personal care workers |        441        1.46       51.25
       Home-based personal care workers |        177        0.59       51.84
Personal care,related workers not else  |         50        0.17       52.00
        Other personal services workers |          6        0.02       52.02
Hairdress,barber,beautician, related wo |        228        0.75       52.78
                  Companions and valets |          6        0.02       52.80
              Undertakers and embalmers |          5        0.02       52.81
Other pers service workers not else cla |         42        0.14       52.95
            Protective services workers |          5        0.02       52.97
                          Fire-fighters |         29        0.10       53.07
                        Police officers |        105        0.35       53.41
                          Prison guards |         15        0.05       53.46
Protective services workers not else cl |         71        0.23       53.70
 Models, salespersons and demonstrators |         15        0.05       53.75
               Fashion and other models |          6        0.02       53.77
Shop,stall,market salespers, demonstrat |      1,626        5.37       59.14
Skilled agricultural and fishery worker |          8        0.03       59.17
      Market gardeners and crop growers |          1        0.00       59.17
       Field crop and vegetable growers |        399        1.32       60.49
Gardeners, horticultural, nursery growe |        154        0.51       61.00
   Animal producers and related workers |         15        0.05       61.05
          Dairy and livestock producers |        177        0.59       61.63
                      Poultry producers |         16        0.05       61.69
Animal prod, related workers not else c |         12        0.04       61.73
              Crop and animal producers |        294        0.97       62.70
           Forestry and related workers |         30        0.10       62.80
           Forestry workers and loggers |         20        0.07       62.86
   Charcoal burners and related workers |          1        0.00       62.87
  Fishery workers, hunters and trappers |          2        0.01       62.87
       Aquatic-life cultivation workers |          2        0.01       62.88
Inland and coastal waters fishery worke |         24        0.08       62.96
               Deep-sea fishery workers |          7        0.02       62.98
       Craft and related trades workers |          9        0.03       63.01
 Extraction and building trades workers |          1        0.00       63.02
              Miners and quarry workers |         18        0.06       63.07
                Shotfirers and blasters |          2        0.01       63.08
   Stone splitters, cutters and carvers |          6        0.02       63.10
Building frame and related trades worke |         24        0.08       63.18
                               Builders |         68        0.22       63.41
            Bricklayers and stonemasons |        252        0.83       64.24
Concrete placer,concrete finisher, rel  |         21        0.07       64.31
                 Carpenters and joiners |        215        0.71       65.02
Build frame, rel trade worker not else  |         84        0.28       65.30
Build finishers, related trades workers |          6        0.02       65.32
                                Roofers |         28        0.09       65.41
          Floor layers and tile setters |         24        0.08       65.49
                             Plasterers |         39        0.13       65.62
                     Insulation workers |          6        0.02       65.64
                               Glaziers |         13        0.04       65.68
              Plumbers and pipe fitters |        130        0.43       66.11
      Building and related electricians |        104        0.34       66.45
Build finisher,rel trde work not else c |         29        0.10       66.55
Painter,building struct cleaner,rel trd |          4        0.01       66.56
           Painters and related workers |        134        0.44       67.00
            Building structure cleaners |          8        0.03       67.03
Metal, machinery related trades workers |         56        0.19       67.22
Metalm,welder,sheetmet,structmet prep,r |         15        0.05       67.27
          Metal moulders and coremakers |         10        0.03       67.30
               Welders and flamecutters |         74        0.24       67.54
                    Sheet-metal workers |         43        0.14       67.69
Structural-metal preparers and erectors |         21        0.07       67.76
             Riggers and cable splicers |          6        0.02       67.78
Blacksmiths,tool-makers,related trad wo |          3        0.01       67.79
Blacksmith, hammer-smith,forging-press  |         22        0.07       67.86
        Tool-makers and related workers |         49        0.16       68.02
Machine-tool setters and setter-operato |         56        0.19       68.20
Metal wheelgrinder, polisher, tool shar |         15        0.05       68.25
        Machinery mechanics and fitters |         48        0.16       68.41
    Motor vehicle mechanics and fitters |        203        0.67       69.08
  Aircraft engine mechanics and fitters |          9        0.03       69.11
Agric- or industrmachine mechanic and f |        121        0.40       69.51
Electric,electronic equip mech and fitt |         12        0.04       69.55
Electric mechanic, fitters and servicer |        184        0.61       70.16
Electronic mecanic, fitters and service |         54        0.18       70.34
Telegraph, teleph installers and servic |         24        0.08       70.42
Electric line install,repairer,cable jo |         49        0.16       70.58
Precision,handicraft,printing,rel trade |          5        0.02       70.60
Precision-instrument makers and repaire |         35        0.12       70.71
   Musical instrument makers and tuners |          3        0.01       70.72
   Jewellery and precious-metal workers |         13        0.04       70.77
Potters,glass-makers, related trades wo |          2        0.01       70.77
Abrasive wheel former,potter and rel wo |         14        0.05       70.82
Glass-makers,cutters,grinders and finis |         13        0.04       70.86
Glass,ceramics and rel decorative paint |          4        0.01       70.88
Handicrft work wood,textile,leather,rel |          3        0.01       70.89
Handicrft work in wood and related mate |         12        0.04       70.93
Handicrft work in textile,leather,rel m |          4        0.01       70.94
Craft printing and related trades worke |         11        0.04       70.97
Compositors,typesetters, related worker |         31        0.10       71.08
         Stereotypers and electrotypers |          3        0.01       71.09
         Printing engravers and etchers |          4        0.01       71.10
       Photographic and related workers |          8        0.03       71.13
        Bookbinders and related workers |         12        0.04       71.17
Silk-screen,block,craft textile printer |         12        0.04       71.21
 Other craft and related trades workers |          4        0.01       71.22
Food processing and related trades work |          3        0.01       71.23
Butchers,fishmongers,related food prepa |         70        0.23       71.46
Bakers,pastry-cooks,confectionery maker |         92        0.30       71.76
                 Dairy products workers |         13        0.04       71.81
Fruit, vegetable and related preservers |          3        0.01       71.82
  Food and beverage tasters and graders |          3        0.01       71.83
Tobacco preparers,tobacco products make |          3        0.01       71.84
Wood treaters,cabinet-makers,rel trad w |         19        0.06       71.90
                          Wood treaters |         14        0.05       71.95
      Cabinetmakers and related workers |         97        0.32       72.27
Woodworking machine setter,setter-opera |         12        0.04       72.31
Basketry weavers,brush makers,rel worke |          2        0.01       72.31
 Textile,garment, related trades worker |          9        0.03       72.34
                        Fibre preparers |          3        0.01       72.35
  Weavers, knitters and related workers |         33        0.11       72.46
       Tailors, dressmakers and hatters |        133        0.44       72.90
           Furriers and related workers |          6        0.02       72.92
Textile,leather,rel patternmakers, cutt |         10        0.03       72.95
Sewers, embroiderers and related worker |        103        0.34       73.30
       Upholsterers and related workers |         23        0.08       73.37
  Pelt,leather,shoemaking trades worker |          1        0.00       73.37
 Pelt dressers, tanners and fellmongers |          4        0.01       73.39
        Shoe-makers and related workers |         17        0.06       73.44
Plant and machine operators and assembl |         30        0.10       73.54
 Stationary plant and related operators |          4        0.01       73.56
                 Mining plant operators |          2        0.01       73.56
Mineralore,stone-processing-plant opera |          3        0.01       73.57
Well drillers,borers and related worker |          4        0.01       73.59
       Metal-processing plant operators |          3        0.01       73.60
        Ore and metal furnace operators |          8        0.03       73.62
Metal melters,casters,rolling-mill oper |         19        0.06       73.69
    Metal-heat-treating-plant operators |          6        0.02       73.71
            Metal drawers and extruders |          1        0.00       73.71
Glass, ceramics,related plant operators |          2        0.01       73.72
Glass,ceramics kiln,related machine ope |          5        0.02       73.73
Glass,ceramic,rel plant operat not else |          5        0.02       73.75
Wood-processing, papermaking-plant oper |          1        0.00       73.75
        Wood-processing-plant operators |         22        0.07       73.82
             Paper-pulp plant operators |          5        0.02       73.84
            Papermaking-plant operators |         24        0.08       73.92
    Chemical-processing-plant operators |         15        0.05       73.97
Crush,grind,chemicalmixing machinery op |          2        0.01       73.98
 Chemical-heat-treating-plant operators |          1        0.00       73.98
Chemical,filtering,separating-equip ope |          1        0.00       73.98
Chem-still,reactor opt,except petr, nat |          1        0.00       73.99
Petrol,natural gas refin plant operator |          2        0.01       73.99
Chemicalprocess,plant operat not else c |         10        0.03       74.03
Power-Prod. and related plant operators |          4        0.01       74.04
       Power-production plant operators |          8        0.03       74.07
      Steam-engine and boiler operators |          7        0.02       74.09
Incinerator,watertreatment,rel plant op |          3        0.01       74.10
       Machine operators and assemblers |          2        0.01       74.11
 Metal,mineralproducts machine operator |          2        0.01       74.11
                 Machine-tool operators |         46        0.15       74.26
Cement, other mineral prod machine oper |          9        0.03       74.29
    Chemical-products machine operators |          2        0.01       74.30
Pharmaceutical,toiletry-prod machine op |         10        0.03       74.33
Metal finish, plating,coatingmachine op |         14        0.05       74.38
Photographic-products machine operators |          2        0.01       74.39
Chemicalprod, machine operat not else c |          7        0.02       74.41
      Rubber-products machine operators |          9        0.03       74.44
     Plastic-products machine operators |         33        0.11       74.55
        Wood-products machine operators |         22        0.07       74.62
Printing,binding,paperprod machine oper |          2        0.01       74.63
             Printing-machine operators |         30        0.10       74.73
          Bookbinding-machine operators |          1        0.00       74.73
       Paper-products machine operators |         10        0.03       74.76
Textile,fur,leatherprod machine operato |          3        0.01       74.77
Fibreprep,spinning winding-machine oper |         19        0.06       74.84
Weaving- and knitting-machine operators |         22        0.07       74.91
               Sewing-machine operators |         73        0.24       75.15
Bleaching,dyeing,cleaning-machine opera |         32        0.11       75.26
         Fur,leatherprep machine operat |          5        0.02       75.27
Shoemaking- and related machine operato |         13        0.04       75.31
Textl,fur,leatherprod mach operat n els |         17        0.06       75.37
 Food,related products machine operator |          5        0.02       75.39
     Meat, fishprocess machine operator |         38        0.13       75.51
       Dairy-products machine operators |          9        0.03       75.54
Grain- and spice-milling-machine operat |          7        0.02       75.57
Baked g,cereal,chocolateprod machine op |         18        0.06       75.63
Fruit,vegetable,nutprocess-machine oper |          7        0.02       75.65
     Sugar production machine operators |          3        0.01       75.66
Tea, coffee, cocoaprocess-machine opera |          2        0.01       75.67
Brewer,wine, other beverage machine ope |         11        0.04       75.70
   Tobacco production machine operators |          1        0.00       75.70
                             Assemblers |         22        0.07       75.78
        Mechanical-machinery assemblers |         37        0.12       75.90
        Electrical-equipment assemblers |         31        0.10       76.00
        Electronic-equipment assemblers |         18        0.06       76.06
   Metal,rubber,plastic-prod assemblers |         25        0.08       76.14
   Wood and related products assemblers |          8        0.03       76.17
Paperboard,textile, related prod assemb |          3        0.01       76.18
          Composite products assemblers |          4        0.01       76.19
    Other machine operat not else class |        139        0.46       76.65
     Drivers and mobile plant operators |          1        0.00       76.66
Locomotive engine drivers,related worke |          2        0.01       76.66
              Locomotive engine drivers |         41        0.14       76.80
Railway brakers, signallers and shunter |         21        0.07       76.87
                  Motor vehicle drivers |         19        0.06       76.93
                     Motorcycle drivers |          4        0.01       76.94
              Car, taxi and van drivers |        187        0.62       77.56
                   Bus and tram drivers |        124        0.41       77.97
          Heavy truck and lorry drivers |        260        0.86       78.83
Agricultural,other mobile plant operato |          5        0.02       78.85
Motorised farm, forestry plant operator |         25        0.08       78.93
Earth-moving  and related plant operato |         52        0.17       79.10
Crane, hoist and related plant operator |         38        0.13       79.23
                Lifting-truck operators |         51        0.17       79.40
  Ships' deck crews and related workers |         23        0.08       79.47
                 Elementary occupations |         87        0.29       79.76
Sales and services elementary occupatio |         28        0.09       79.85
     Street vendors and related workers |          2        0.01       79.86
                         Street vendors |         34        0.11       79.97
Door-to-door and telephone salespersons |         14        0.05       80.02
Shoe cleaning,other streetserv element  |          2        0.01       80.03
Domestic,related helpers,cleaner,launde |         69        0.23       80.25
          Domestic helpers and cleaners |        427        1.41       81.66
Helper,cleaner in office,hotel,other es |        752        2.49       84.15
           Hand-launderers and pressers |         65        0.21       84.37
Building caretakers,window, rel cleaner |          2        0.01       84.37
                    Building caretakers |        151        0.50       84.87
   Vehicle, window and related cleaners |         13        0.04       84.91
Messengers,porters doorkeepers,rel work |          3        0.01       84.92
Messengers,package,luggage porter, deli |         97        0.32       85.24
Doorkeepers,watchpersons,related worker |         86        0.28       85.53
Vendingm,money collect, meter reader,re |          7        0.02       85.55
Garbage collectors and related labourer |          8        0.03       85.58
                     Garbage collectors |         11        0.04       85.61
         Sweepers and related labourers |         30        0.10       85.71
 Agricultural,fishery,related labourers |          4        0.01       85.73
 Agricultural,fishery,related labourers |         10        0.03       85.76
               Farm-hands and labourers |        149        0.49       86.25
                     Forestry labourers |          6        0.02       86.27
Fishery, hunting and trapping labourers |          8        0.03       86.30
Labourer mining,construction,manufact,t |         35        0.12       86.41
      Mining and construction labourers |          5        0.02       86.43
         Mining and quarrying labourers |         20        0.07       86.50
Constr,mainten labour: roads,dams,sim c |        106        0.35       86.85
        Building construction labourers |         64        0.21       87.06
                Manufacturing labourers |        358        1.18       88.24
Transport laborers and freight handlers |        190        0.63       88.87
                         Not applicable |      2,864        9.47       98.34
                                Refusal |        299        0.99       99.33
                             Don't know |         69        0.23       99.55
                              No answer |        135        0.45      100.00
----------------------------------------+-----------------------------------
                                  Total |     30,253      100.00

. 
. recode iscoco (66666 77777 88888 99999=-9), copyrest gen(isco_mainjob)
(3367 differences between iscoco and isco_mainjob)

. label variable isco_mainjob "Current occupation of respondent - isco88 4-digit"

. tab isco_mainjob

    Current |
 occupation |
         of |
 respondent |
   - isco88 |
    4-digit |      Freq.     Percent        Cum.
------------+-----------------------------------
         -9 |      3,367       11.13       11.13
        100 |         88        0.29       11.42
       1000 |         11        0.04       11.46
       1100 |          5        0.02       11.47
       1110 |         26        0.09       11.56
       1141 |          2        0.01       11.57
       1142 |          7        0.02       11.59
       1143 |          2        0.01       11.60
       1200 |          8        0.03       11.62
       1210 |        131        0.43       12.06
       1220 |         29        0.10       12.15
       1221 |         10        0.03       12.18
       1222 |         75        0.25       12.43
       1223 |         41        0.14       12.57
       1224 |         68        0.22       12.79
       1225 |         40        0.13       12.92
       1226 |         36        0.12       13.04
       1227 |         60        0.20       13.24
       1228 |         20        0.07       13.31
       1229 |         98        0.32       13.63
       1230 |         19        0.06       13.69
       1231 |        120        0.40       14.09
       1232 |         66        0.22       14.31
       1233 |        111        0.37       14.68
       1234 |         20        0.07       14.74
       1235 |         25        0.08       14.82
       1236 |         31        0.10       14.93
       1237 |         44        0.15       15.07
       1239 |        138        0.46       15.53
       1300 |         12        0.04       15.57
       1310 |         28        0.09       15.66
       1311 |         74        0.24       15.91
       1312 |         65        0.21       16.12
       1313 |         77        0.25       16.38
       1314 |        391        1.29       17.67
       1315 |        140        0.46       18.13
       1316 |         47        0.16       18.29
       1317 |         83        0.27       18.56
       1318 |         40        0.13       18.69
       1319 |        126        0.42       19.11
       2000 |         16        0.05       19.16
       2100 |          6        0.02       19.18
       2110 |          5        0.02       19.20
       2111 |          8        0.03       19.22
       2112 |          2        0.01       19.23
       2113 |         21        0.07       19.30
       2114 |          5        0.02       19.32
       2121 |         12        0.04       19.36
       2122 |          5        0.02       19.37
       2130 |          8        0.03       19.40
       2131 |        172        0.57       19.97
       2139 |         75        0.25       20.22
       2140 |         16        0.05       20.27
       2141 |         70        0.23       20.50
       2142 |         86        0.28       20.78
       2143 |         27        0.09       20.87
       2144 |         34        0.11       20.99
       2145 |         59        0.20       21.18
       2146 |         19        0.06       21.24
       2147 |         13        0.04       21.29
       2148 |         12        0.04       21.33
       2149 |        103        0.34       21.67
       2200 |          1        0.00       21.67
       2210 |          4        0.01       21.68
       2211 |         23        0.08       21.76
       2212 |          7        0.02       21.78
       2213 |         15        0.05       21.83
       2221 |        143        0.47       22.31
       2222 |         32        0.11       22.41
       2223 |         16        0.05       22.46
       2224 |         31        0.10       22.57
       2229 |         30        0.10       22.67
       2230 |        244        0.81       23.47
       2300 |         46        0.15       23.62
       2310 |        113        0.37       24.00
       2320 |        443        1.46       25.46
       2330 |          4        0.01       25.48
       2331 |        359        1.19       26.66
       2332 |         68        0.22       26.89
       2340 |         46        0.15       27.04
       2350 |         11        0.04       27.08
       2351 |         34        0.11       27.19
       2352 |          8        0.03       27.21
       2359 |         97        0.32       27.53
       2400 |          3        0.01       27.54
       2410 |         12        0.04       27.58
       2411 |        182        0.60       28.19
       2412 |         49        0.16       28.35
       2419 |        189        0.62       28.97
       2420 |          5        0.02       28.99
       2421 |         68        0.22       29.21
       2422 |         19        0.06       29.28
       2429 |         39        0.13       29.41
       2430 |          5        0.02       29.42
       2431 |         18        0.06       29.48
       2432 |         33        0.11       29.59
       2440 |          1        0.00       29.59
       2441 |         35        0.12       29.71
       2442 |          8        0.03       29.74
       2443 |         11        0.04       29.77
       2444 |         27        0.09       29.86
       2445 |         43        0.14       30.00
       2446 |         85        0.28       30.28
       2450 |         10        0.03       30.32
       2451 |         89        0.29       30.61
       2452 |         48        0.16       30.77
       2453 |         42        0.14       30.91
       2454 |          2        0.01       30.92
       2455 |         29        0.10       31.01
       2460 |         25        0.08       31.09
       2470 |         79        0.26       31.36
       3000 |          3        0.01       31.37
       3100 |          8        0.03       31.39
       3110 |         16        0.05       31.44
       3111 |         45        0.15       31.59
       3112 |         68        0.22       31.82
       3113 |         30        0.10       31.92
       3114 |         66        0.22       32.14
       3115 |         77        0.25       32.39
       3116 |         35        0.12       32.51
       3117 |         10        0.03       32.54
       3118 |         79        0.26       32.80
       3119 |        144        0.48       33.28
       3120 |         39        0.13       33.40
       3121 |         44        0.15       33.55
       3122 |         70        0.23       33.78
       3123 |          2        0.01       33.79
       3131 |         37        0.12       33.91
       3132 |         13        0.04       33.95
       3133 |          8        0.03       33.98
       3139 |          4        0.01       33.99
       3140 |          7        0.02       34.02
       3141 |         11        0.04       34.05
       3142 |         25        0.08       34.14
       3143 |         11        0.04       34.17
       3144 |         18        0.06       34.23
       3145 |          4        0.01       34.24
       3150 |          6        0.02       34.26
       3151 |          5        0.02       34.28
       3152 |         97        0.32       34.60
       3200 |          6        0.02       34.62
       3210 |          1        0.00       34.62
       3211 |         39        0.13       34.75
       3212 |         12        0.04       34.79
       3213 |          6        0.02       34.81
       3220 |          8        0.03       34.84
       3221 |         24        0.08       34.92
       3222 |          5        0.02       34.94
       3223 |         11        0.04       34.97
       3224 |          9        0.03       35.00
       3225 |         32        0.11       35.11
       3226 |         69        0.23       35.34
       3227 |          6        0.02       35.36
       3228 |         31        0.10       35.46
       3229 |         80        0.26       35.72
       3230 |          6        0.02       35.74
       3231 |        428        1.41       37.16
       3232 |         14        0.05       37.20
       3300 |          5        0.02       37.22
       3310 |        136        0.45       37.67
       3320 |        129        0.43       38.10
       3330 |         22        0.07       38.17
       3340 |         78        0.26       38.43
       3400 |         13        0.04       38.47
       3410 |         42        0.14       38.61
       3411 |         24        0.08       38.69
       3412 |         66        0.22       38.91
       3413 |         38        0.13       39.03
       3414 |          8        0.03       39.06
       3415 |        256        0.85       39.90
       3416 |         50        0.17       40.07
       3417 |         16        0.05       40.12
       3419 |        165        0.55       40.67
       3420 |          5        0.02       40.68
       3421 |         12        0.04       40.72
       3422 |          9        0.03       40.75
       3423 |         20        0.07       40.82
       3429 |         50        0.17       40.98
       3430 |         80        0.26       41.25
       3431 |        398        1.32       42.56
       3432 |         67        0.22       42.79
       3433 |        208        0.69       43.47
       3434 |          9        0.03       43.50
       3440 |         22        0.07       43.58
       3441 |          9        0.03       43.61
       3442 |         41        0.14       43.74
       3443 |         33        0.11       43.85
       3444 |          8        0.03       43.88
       3449 |         40        0.13       44.01
       3450 |         39        0.13       44.14
       3460 |        138        0.46       44.59
       3470 |         17        0.06       44.65
       3471 |         58        0.19       44.84
       3472 |          3        0.01       44.85
       3473 |          9        0.03       44.88
       3474 |          3        0.01       44.89
       3475 |         33        0.11       45.00
       3480 |         11        0.04       45.04
       4000 |        121        0.40       45.44
       4100 |        121        0.40       45.84
       4110 |         59        0.20       46.03
       4111 |         33        0.11       46.14
       4112 |         15        0.05       46.19
       4113 |         37        0.12       46.31
       4114 |         13        0.04       46.36
       4115 |        472        1.56       47.92
       4120 |         46        0.15       48.07
       4121 |        274        0.91       48.97
       4122 |        107        0.35       49.33
       4130 |         12        0.04       49.37
       4131 |        211        0.70       50.06
       4132 |         81        0.27       50.33
       4133 |         47        0.16       50.49
       4140 |          3        0.01       50.50
       4141 |         42        0.14       50.64
       4142 |        116        0.38       51.02
       4143 |          7        0.02       51.04
       4144 |          3        0.01       51.05
       4190 |        639        2.11       53.16
       4200 |         72        0.24       53.40
       4210 |         27        0.09       53.49
       4211 |        125        0.41       53.91
       4212 |        131        0.43       54.34
       4213 |          5        0.02       54.35
       4215 |         14        0.05       54.40
       4220 |         20        0.07       54.47
       4221 |         29        0.10       54.56
       4222 |        233        0.77       55.33
       4223 |        110        0.36       55.70
       5100 |          7        0.02       55.72
       5110 |          2        0.01       55.73
       5111 |         13        0.04       55.77
       5112 |         20        0.07       55.84
       5113 |         13        0.04       55.88
       5120 |         36        0.12       56.00
       5121 |         76        0.25       56.25
       5122 |        391        1.29       57.54
       5123 |        506        1.67       59.21
       5130 |        225        0.74       59.96
       5131 |        293        0.97       60.93
       5132 |        441        1.46       62.38
       5133 |        177        0.59       62.97
       5139 |         50        0.17       63.13
       5140 |          6        0.02       63.15
       5141 |        228        0.75       63.91
       5142 |          6        0.02       63.93
       5143 |          5        0.02       63.94
       5149 |         42        0.14       64.08
       5160 |          5        0.02       64.10
       5161 |         29        0.10       64.20
       5162 |        105        0.35       64.54
       5163 |         15        0.05       64.59
       5169 |         71        0.23       64.83
       5200 |         15        0.05       64.88
       5210 |          6        0.02       64.90
       5220 |      1,626        5.37       70.27
       6100 |          8        0.03       70.30
       6110 |          1        0.00       70.30
       6111 |        399        1.32       71.62
       6112 |        154        0.51       72.13
       6120 |         15        0.05       72.18
       6121 |        177        0.59       72.76
       6122 |         16        0.05       72.82
       6129 |         12        0.04       72.86
       6130 |        294        0.97       73.83
       6140 |         30        0.10       73.93
       6141 |         20        0.07       73.99
       6142 |          1        0.00       74.00
       6150 |          2        0.01       74.00
       6151 |          2        0.01       74.01
       6152 |         24        0.08       74.09
       6153 |          7        0.02       74.11
       7000 |          9        0.03       74.14
       7100 |          1        0.00       74.14
       7111 |         18        0.06       74.20
       7112 |          2        0.01       74.21
       7113 |          6        0.02       74.23
       7120 |         24        0.08       74.31
       7121 |         68        0.22       74.53
       7122 |        252        0.83       75.37
       7123 |         21        0.07       75.44
       7124 |        215        0.71       76.15
       7129 |         84        0.28       76.43
       7130 |          6        0.02       76.45
       7131 |         28        0.09       76.54
       7132 |         24        0.08       76.62
       7133 |         39        0.13       76.75
       7134 |          6        0.02       76.77
       7135 |         13        0.04       76.81
       7136 |        130        0.43       77.24
       7137 |        104        0.34       77.58
       7139 |         29        0.10       77.68
       7140 |          4        0.01       77.69
       7141 |        134        0.44       78.13
       7143 |          8        0.03       78.16
       7200 |         56        0.19       78.35
       7210 |         15        0.05       78.40
       7211 |         10        0.03       78.43
       7212 |         74        0.24       78.67
       7213 |         43        0.14       78.82
       7214 |         21        0.07       78.88
       7215 |          6        0.02       78.90
       7220 |          3        0.01       78.91
       7221 |         22        0.07       78.99
       7222 |         49        0.16       79.15
       7223 |         56        0.19       79.33
       7224 |         15        0.05       79.38
       7230 |         48        0.16       79.54
       7231 |        203        0.67       80.21
       7232 |          9        0.03       80.24
       7233 |        121        0.40       80.64
       7240 |         12        0.04       80.68
       7241 |        184        0.61       81.29
       7242 |         54        0.18       81.47
       7244 |         24        0.08       81.55
       7245 |         49        0.16       81.71
       7300 |          5        0.02       81.73
       7311 |         35        0.12       81.84
       7312 |          3        0.01       81.85
       7313 |         13        0.04       81.90
       7320 |          2        0.01       81.90
       7321 |         14        0.05       81.95
       7322 |         13        0.04       81.99
       7324 |          4        0.01       82.01
       7330 |          3        0.01       82.02
       7331 |         12        0.04       82.05
       7332 |          4        0.01       82.07
       7340 |         11        0.04       82.10
       7341 |         31        0.10       82.21
       7342 |          3        0.01       82.22
       7343 |          4        0.01       82.23
       7344 |          8        0.03       82.26
       7345 |         12        0.04       82.30
       7346 |         12        0.04       82.34
       7400 |          4        0.01       82.35
       7410 |          3        0.01       82.36
       7411 |         70        0.23       82.59
       7412 |         92        0.30       82.89
       7413 |         13        0.04       82.94
       7414 |          3        0.01       82.95
       7415 |          3        0.01       82.96
       7416 |          3        0.01       82.97
       7420 |         19        0.06       83.03
       7421 |         14        0.05       83.08
       7422 |         97        0.32       83.40
       7423 |         12        0.04       83.44
       7424 |          2        0.01       83.44
       7430 |          9        0.03       83.47
       7431 |          3        0.01       83.48
       7432 |         33        0.11       83.59
       7433 |        133        0.44       84.03
       7434 |          6        0.02       84.05
       7435 |         10        0.03       84.08
       7436 |        103        0.34       84.42
       7437 |         23        0.08       84.50
       7440 |          1        0.00       84.50
       7441 |          4        0.01       84.52
       7442 |         17        0.06       84.57
       8000 |         30        0.10       84.67
       8100 |          4        0.01       84.69
       8111 |          2        0.01       84.69
       8112 |          3        0.01       84.70
       8113 |          4        0.01       84.72
       8120 |          3        0.01       84.73
       8121 |          8        0.03       84.75
       8122 |         19        0.06       84.81
       8123 |          6        0.02       84.83
       8124 |          1        0.00       84.84
       8130 |          2        0.01       84.84
       8131 |          5        0.02       84.86
       8139 |          5        0.02       84.88
       8140 |          1        0.00       84.88
       8141 |         22        0.07       84.95
       8142 |          5        0.02       84.97
       8143 |         24        0.08       85.05
       8150 |         15        0.05       85.10
       8151 |          2        0.01       85.11
       8152 |          1        0.00       85.11
       8153 |          1        0.00       85.11
       8154 |          1        0.00       85.12
       8155 |          2        0.01       85.12
       8159 |         10        0.03       85.16
       8160 |          4        0.01       85.17
       8161 |          8        0.03       85.19
       8162 |          7        0.02       85.22
       8163 |          3        0.01       85.23
       8200 |          2        0.01       85.23
       8210 |          2        0.01       85.24
       8211 |         46        0.15       85.39
       8212 |          9        0.03       85.42
       8220 |          2        0.01       85.43
       8221 |         10        0.03       85.46
       8223 |         14        0.05       85.51
       8224 |          2        0.01       85.52
       8229 |          7        0.02       85.54
       8231 |          9        0.03       85.57
       8232 |         33        0.11       85.68
       8240 |         22        0.07       85.75
       8250 |          2        0.01       85.76
       8251 |         30        0.10       85.86
       8252 |          1        0.00       85.86
       8253 |         10        0.03       85.89
       8260 |          3        0.01       85.90
       8261 |         19        0.06       85.97
       8262 |         22        0.07       86.04
       8263 |         73        0.24       86.28
       8264 |         32        0.11       86.38
       8265 |          5        0.02       86.40
       8266 |         13        0.04       86.44
       8269 |         17        0.06       86.50
       8270 |          5        0.02       86.52
       8271 |         38        0.13       86.64
       8272 |          9        0.03       86.67
       8273 |          7        0.02       86.70
       8274 |         18        0.06       86.76
       8275 |          7        0.02       86.78
       8276 |          3        0.01       86.79
       8277 |          2        0.01       86.79
       8278 |         11        0.04       86.83
       8279 |          1        0.00       86.83
       8280 |         22        0.07       86.91
       8281 |         37        0.12       87.03
       8282 |         31        0.10       87.13
       8283 |         18        0.06       87.19
       8284 |         25        0.08       87.27
       8285 |          8        0.03       87.30
       8286 |          3        0.01       87.31
       8287 |          4        0.01       87.32
       8290 |        139        0.46       87.78
       8300 |          1        0.00       87.79
       8310 |          2        0.01       87.79
       8311 |         41        0.14       87.93
       8312 |         21        0.07       88.00
       8320 |         19        0.06       88.06
       8321 |          4        0.01       88.07
       8322 |        187        0.62       88.69
       8323 |        124        0.41       89.10
       8324 |        260        0.86       89.96
       8330 |          5        0.02       89.98
       8331 |         25        0.08       90.06
       8332 |         52        0.17       90.23
       8333 |         38        0.13       90.36
       8334 |         51        0.17       90.53
       8340 |         23        0.08       90.60
       9000 |         87        0.29       90.89
       9100 |         28        0.09       90.98
       9110 |          2        0.01       90.99
       9111 |         34        0.11       91.10
       9113 |         14        0.05       91.15
       9120 |          2        0.01       91.15
       9130 |         69        0.23       91.38
       9131 |        427        1.41       92.79
       9132 |        752        2.49       95.28
       9133 |         65        0.21       95.49
       9140 |          2        0.01       95.50
       9141 |        151        0.50       96.00
       9142 |         13        0.04       96.04
       9150 |          3        0.01       96.05
       9151 |         97        0.32       96.37
       9152 |         86        0.28       96.66
       9153 |          7        0.02       96.68
       9160 |          8        0.03       96.71
       9161 |         11        0.04       96.74
       9162 |         30        0.10       96.84
       9200 |          4        0.01       96.86
       9210 |         10        0.03       96.89
       9211 |        149        0.49       97.38
       9212 |          6        0.02       97.40
       9213 |          8        0.03       97.43
       9300 |         35        0.12       97.54
       9310 |          5        0.02       97.56
       9311 |         20        0.07       97.63
       9312 |        106        0.35       97.98
       9313 |         64        0.21       98.19
       9320 |        358        1.18       99.37
       9330 |        190        0.63      100.00
------------+-----------------------------------
      Total |     30,253      100.00

. 
. **** Recode employment status for respondents
. 
. tab emplrel

            Employment relation |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     21,745       76.44       76.44
                  Self-employed |      3,386       11.90       88.34
Working for own family business |        428        1.50       89.85
                 Not applicable |      2,728        9.59       99.44
                        Refusal |         22        0.08       99.51
                     Don't know |         82        0.29       99.80
                      No answer |         56        0.20      100.00
--------------------------------+-----------------------------------
                          Total |     28,447      100.00

. 
. recode emplrel (6 7 8 9=9), copyrest gen(emplrel_r)
(2832 differences between emplrel and emplrel_r)

. replace emplrel_r=-9 if cntry=="FR" & (essround==1 | essround==2) // Replace this command line with [SYNTAX A] or [SYNT
> AX C]
(1806 real changes made)

. replace emplrel_r=-9 if cntry=="HU" & essround==2 // Replace this command line with [SYNTAX E]
(0 real changes made)

. label define emplrel_r ///
> 1 "Employee" ///
> 2 "Self-employed" ///
> 3 "Working for own family business" ///
> 9 "Missing"

. label value emplrel_r emplrel_r

. tab emplrel_r

  RECODE of emplrel (Employment |
                      relation) |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                             -9 |      1,806        5.97        5.97
                       Employee |     21,745       71.88       77.85
                  Self-employed |      3,386       11.19       89.04
Working for own family business |        428        1.41       90.45
                        Missing |      2,888        9.55      100.00
--------------------------------+-----------------------------------
                          Total |     30,253      100.00

. 
. tab emplno

     Number of |
     employees |
    respondent |
       has/had |      Freq.     Percent        Cum.
---------------+-----------------------------------
             0 |      2,155        7.12        7.12
             1 |        388        1.28        8.41
             2 |        253        0.84        9.24
             3 |        169        0.56        9.80
             4 |         91        0.30       10.10
             5 |         77        0.25       10.36
             6 |         52        0.17       10.53
             7 |         40        0.13       10.66
             8 |         31        0.10       10.76
             9 |         11        0.04       10.80
            10 |         34        0.11       10.91
            11 |          6        0.02       10.93
            12 |         25        0.08       11.01
            13 |          7        0.02       11.04
            14 |          9        0.03       11.07
            15 |         20        0.07       11.13
            16 |          4        0.01       11.15
            17 |          4        0.01       11.16
            18 |          5        0.02       11.18
            19 |          2        0.01       11.18
            20 |          9        0.03       11.21
            22 |          6        0.02       11.23
            23 |          1        0.00       11.24
            24 |          2        0.01       11.24
            25 |          8        0.03       11.27
            27 |          1        0.00       11.27
            28 |          1        0.00       11.27
            30 |         10        0.03       11.31
            32 |          2        0.01       11.31
            38 |          1        0.00       11.32
            40 |          5        0.02       11.33
            41 |          1        0.00       11.34
            42 |          3        0.01       11.35
            45 |          1        0.00       11.35
            48 |          1        0.00       11.35
            49 |          1        0.00       11.36
            50 |          5        0.02       11.37
            53 |          1        0.00       11.38
            65 |          1        0.00       11.38
            70 |          2        0.01       11.39
            80 |          1        0.00       11.39
           100 |          2        0.01       11.40
           105 |          1        0.00       11.40
           115 |          1        0.00       11.40
           120 |          1        0.00       11.41
           130 |          1        0.00       11.41
           248 |          1        0.00       11.41
           256 |          1        0.00       11.42
           325 |          1        0.00       11.42
           370 |          1        0.00       11.42
           500 |          1        0.00       11.43
Not applicable |     25,141       83.10       94.53
       Refusal |         16        0.05       94.58
    Don't know |         35        0.12       94.70
     No answer |      1,604        5.30      100.00
---------------+-----------------------------------
         Total |     30,253      100.00

. 
. recode emplno (0 66666 77777 88888 99999=0)(1/9=1)(10/10000=2), gen(emplno_r)
(27710 differences between emplno and emplno_r)

. label define emplno_r ///
> 0 "0 employees" ///
> 1 "1-9 employees" ///
> 2 "10+ employees"

. label value emplno_r emplno_r

. tab emplno_r

    RECODE of |
       emplno |
   (Number of |
    employees |
   respondent |
     has/had) |      Freq.     Percent        Cum.
--------------+-----------------------------------
  0 employees |     28,951       95.70       95.70
1-9 employees |      1,112        3.68       99.37
10+ employees |        190        0.63      100.00
--------------+-----------------------------------
        Total |     30,253      100.00

. 
. 
. gen selfem_mainjob=.
(30253 missing values generated)

. replace selfem_mainjob=1 if emplrel_r==1 | emplrel_r==9
(24633 real changes made)

. replace selfem_mainjob=2 if emplrel_r==2 & emplno_r==0
(2137 real changes made)

. replace selfem_mainjob=2 if emplrel_r==3
(428 real changes made)

. replace selfem_mainjob=3 if emplrel_r==2 & emplno_r==1
(1067 real changes made)

. replace selfem_mainjob=4 if emplrel_r==2 & emplno_r==2
(182 real changes made)

. label variable selfem_mainjob "Employment status for respondants"

. label define selfem_mainjob ///
> 1 "Not self-employed" ///
> 2 "Self-empl without employees" ///
> 3 "Self-empl with 1-9 employees" ///
> 4 "Self-empl with 10 or more"

. label value selfem_mainjob selfem_mainjob

. tab selfem_mainjob

       Employment status for |
                 respondants |      Freq.     Percent        Cum.
-----------------------------+-----------------------------------
           Not self-employed |     24,633       86.59       86.59
 Self-empl without employees |      2,565        9.02       95.61
Self-empl with 1-9 employees |      1,067        3.75       99.36
   Self-empl with 10 or more |        182        0.64      100.00
-----------------------------+-----------------------------------
                       Total |     28,447      100.00

. 
. 
. 
. * Create Oesch class schema for respondents
. 
. 
. gen class16_r = -9

. 
. * Large employers (1)
. 
. replace class16_r=1 if selfem_mainjob==4
(182 real changes made)

. 
. 
. * Self-employed professionals (2)
. 
. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2000 & isco_mainjob <= 2229) 
(176 real changes made)

. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2300 & isco_mainjob <= 2470)
(257 real changes made)

. 
. * Small business owners with employees (3)
. 
. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(363 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(555 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob == 2230)
(1 real change made)

. 
. * Small business owners without employees (4)
. 
. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(338 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(1868 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob == 2230)
(6 real changes made)

. 
. * Technical experts (5)
. 
. replace class16_r=5 if (selfem_mainjob==1) & (isco_mainjob >= 2100 & isco_mainjob <= 2213)
(640 real changes made)

. 
. * Technicians (6)
. 
. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3100 & isco_mainjob <= 3152)
(811 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3210 & isco_mainjob <= 3213)
(50 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob == 3434)
(7 real changes made)

. 
. * Skilled manual (7)
. 
. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 6000 & isco_mainjob <= 7442)
(2855 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8310 & isco_mainjob <= 8312)
(60 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8324 & isco_mainjob <= 8330)
(225 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8332 & isco_mainjob <= 8340)
(145 real changes made)

. 
. * Low-skilled manual (8)
. 
. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8000 & isco_mainjob <= 8300)
(893 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8320 & isco_mainjob <= 8321)
(19 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob == 8331)
(20 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 9153 & isco_mainjob <= 9333)
(880 real changes made)

. 
. * Higher-grade managers and administrators (9)
. 
. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 1000 & isco_mainjob <= 1239)
(1020 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 2400 & isco_mainjob <= 2429)
(412 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2441)
(31 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2470)
(69 real changes made)

. 
. * Lower-grade managers and administrators (10)
. 
. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 1300 & isco_mainjob <= 1319)
(339 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3400 & isco_mainjob <= 3433)
(1232 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3440 & isco_mainjob <= 3450)
(158 real changes made)

. 
. * Skilled clerks (11)
. 
. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4000 & isco_mainjob <= 4112)
(325 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4114 & isco_mainjob <= 4210)
(1952 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4212 & isco_mainjob <= 4222)
(398 real changes made)

. 
. * Unskilled clerks (12)
. 
. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4113)
(28 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4211)
(101 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4223)
(104 real changes made)

. 
. * Socio-cultural professionals (13)
. 
. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2220 &  isco_mainjob <= 2229)
(172 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2300 &  isco_mainjob <= 2320)
(533 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2340 &  isco_mainjob <= 2359)
(160 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2430 &  isco_mainjob <= 2440)
(53 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2442 &  isco_mainjob <= 2443)
(15 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2445)
(32 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2451)
(66 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2460)
(21 real changes made)

. 
. * Socio-cultural semi-professionals (14)
. 
. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2230)
(232 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2330 & isco_mainjob <= 2332)
(410 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2444)
(15 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2446 & isco_mainjob <= 2450)
(80 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2452 & isco_mainjob <= 2455)
(55 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3200)
(6 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3220 & isco_mainjob <= 3224)
(51 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3226)
(42 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3229 & isco_mainjob <= 3340)
(801 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3460 & isco_mainjob <= 3472)
(167 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3480)
(10 real changes made)

. 
. * Skilled service (15)
. 
. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 3225)
(30 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3227 & isco_mainjob <= 3228)
(33 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3473 & isco_mainjob <= 3475)
(31 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5000 & isco_mainjob <= 5113)
(44 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5122)
(340 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5131 & isco_mainjob <= 5132)
(639 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5140 & isco_mainjob <= 5141)
(129 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5143)
(3 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5160 & isco_mainjob <= 5220)
(1576 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 8323)
(113 real changes made)

. 
. * Low-skilled service (16)
. 
. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5120 & isco_mainjob <= 5121)
(105 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5123 & isco_mainjob <= 5130)
(665 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5133 & isco_mainjob <= 5139)
(200 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5142)
(5 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5149)
(31 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5230)
(0 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 8322)
(137 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 9100 &  isco_mainjob <= 9152)
(1527 real changes made)

. 
. mvdecode class16_r, mv(-9)
   class16_r: 5204 missing values generated

. label variable class16_r "Respondent's Oesch class position - 16 classes"

. label define class16_r ///
> 1 "Large employers" ///
> 2 "Self-employed professionals" ///
> 3 "Small business owners with employees" ///
> 4 "Small business owners without employees" ///
> 5 "Technical experts" ///
> 6 "Technicians" ///
> 7 "Skilled manual" ///
> 8 "Low-skilled manual" ///
> 9 "Higher-grade managers and administrators" ///
> 10 "Lower-grade managers and administrators" ///
> 11 "Skilled clerks" ///
> 12 "Unskilled clerks" ///
> 13 "Socio-cultural professionals" ///
> 14 "Socio-cultural semi-professionals" ///
> 15 "Skilled service" ///
> 16 "Low-skilled service"

. label value class16_r class16_r

. tab class16_r

 Respondent's Oesch class position - 16 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                        Large employers |        182        0.73        0.73
            Self-employed professionals |        433        1.73        2.46
   Small business owners with employees |        919        3.67        6.12
Small business owners without employees |      2,212        8.83       14.95
                      Technical experts |        640        2.55       17.51
                            Technicians |        868        3.47       20.97
                         Skilled manual |      3,285       13.11       34.09
                     Low-skilled manual |      1,812        7.23       41.32
Higher-grade managers and administrator |      1,532        6.12       47.44
Lower-grade managers and administrators |      1,729        6.90       54.34
                         Skilled clerks |      2,675       10.68       65.02
                       Unskilled clerks |        233        0.93       65.95
           Socio-cultural professionals |      1,052        4.20       70.15
      Socio-cultural semi-professionals |      1,869        7.46       77.61
                        Skilled service |      2,938       11.73       89.34
                    Low-skilled service |      2,670       10.66      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,049      100.00

. 
. recode class16_r (1 2=1)(3 4=2)(5 6=3)(7 8=4)(9 10=5)(11 12=6)(13 14=7)(15 16=8), gen(class8_r)
(24867 differences between class16_r and class8_r)

. label variable class8_r "Respondent's Oesch class position - 8 classes"

. label define class8_r ///
> 1 "Self-employed professionals and large employers" ///
> 2 "Small business owners" ///
> 3 "Technical (semi-)professionals" ///
> 4 "Production workers" ///
> 5 "(Associate) managers" ///
> 6 "Clerks" ///
> 7 "Socio-cultural (semi-)professionals" ///
> 8 "Service workers"

. label value class8_r class8_r

. tab class8_r

  Respondent's Oesch class position - 8 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Self-employed professionals and large e |        615        2.46        2.46
                  Small business owners |      3,131       12.50       14.95
         Technical (semi-)professionals |      1,508        6.02       20.97
                     Production workers |      5,097       20.35       41.32
                   (Associate) managers |      3,261       13.02       54.34
                                 Clerks |      2,908       11.61       65.95
    Socio-cultural (semi-)professionals |      2,921       11.66       77.61
                        Service workers |      5,608       22.39      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,049      100.00

. 
. 
. *** Aggregated sector variable
. * Creation of variable
. gen sector=.
(30253 missing values generated)

. replace sector=1 if nace==1 | nace==2 | nace==5
(1505 real changes made)

. replace sector=2 if nace==10 | nace==11 | nace==12 | nace==13 | nace==14
(137 real changes made)

. replace sector=3 if nace==15 | nace==16 | nace==17 | nace==18 | nace==19 | nace==20 ///
>          | nace==21 | nace==22 | nace==23 | nace==24 | nace==25 | nace==26 | nace==27 ///
>          | nace==28 | nace==29 | nace==30 | nace==31 | nace==32 | nace==33 | nace==34 ///
>          | nace==35 | nace==36 | nace==37
(4685 real changes made)

. replace sector=4 if nace==40 | nace==41
(258 real changes made)

. replace sector=5 if nace==45
(1743 real changes made)

. replace sector=6 if nace==50 | nace==51 | nace==52 | nace==55
(4623 real changes made)

. replace sector=7 if nace==60 | nace==61 | nace==62 | nace==63 | nace==64
(1635 real changes made)

. replace sector=8 if nace==65 | nace==66 | nace==67 | nace==70 | nace==71 | nace==72 ///
>          | nace==73 | nace==74
(2946 real changes made)

. replace sector=9 if nace==75 | nace==80 | nace==85 | nace==90 | nace==91 | nace==92 ///
>          | nace==93 | nace==95 | nace==99
(8996 real changes made)

. lab var sector "Aggregated sector variable"

. * Definition of value label
. lab define sector 1 "Agriculture, hunting, forestry and fishing" ///
>         2 "Mining and quarrying" ///
>         3 "Manufacturing" ///
>         4 "Electricity, gas and water" ///
>         5 "Construction" ///
>         6 "Wholesale and retail trade and restaurants and hotels" ///
>         7 "Transport, storage and communications" ///
>         8 "Financing, insurance, real estate and busines services" ///
>         9 "Community, social and personal services"

. lab values sector sector

. 
. *** Gender
. * Creation of variable
. gen gender=gndr

. lab var gender "Gender"

. * Recoding of variable and definition of value label
. recode gender (1=0) (2=1)
(gender: 30250 changes made)

. lab define gender 0 "male" 1 "female"

. lab values gender gender

. 
. 
. *** Creation of modernization loser variable 1 : routine service (class 16)
. * Creation of variable
. gen mod_losers1=.
(30253 missing values generated)

. replace mod_losers1 =1 if class16_r==16
(2670 real changes made)

. replace mod_losers1 =0 if class16_r!=16
(27583 real changes made)

. replace mod_losers1=. if class16_r==.
(5204 real changes made, 5204 to missing)

. 
. lab var mod_losers1 "Modernization losers 1; routine service oesch "

. * Definition of value label
. lab define mod_losers1 1 "mod loser (routine service)" 0 "not loser"

. lab values mod_losers1 mod_losers1

. 
. 
. *** Creation of modernization loser variable 4 : routine and skilled manual (classes 7,8)
. * Creation of variable
. gen mod_losers4=0

. replace mod_losers4 =1 if class16_r==7
(3285 real changes made)

. replace mod_losers4 =1 if class16_r==8
(1812 real changes made)

. replace mod_losers4 =. if class16_r==.
(5204 real changes made, 5204 to missing)

. 
. lab var mod_losers4 "Modernization losers 4; routine and skilled manual oesch "

. * Definition of value label
. lab define mod_losers4 1 "mod loser (routine and skilled manual)" 0 "not loser"

. lab values mod_losers4 mod_losers4

. 
. 
. 
. *** Creation of modernization winner variable 1 : socio-cult prof
. * Creation of variable
. gen mod_winners1=0

. replace mod_winners1 =1 if class16_r==13
(1052 real changes made)

. replace mod_winners1 =1 if class16_r==14
(1869 real changes made)

. replace mod_winners1 =. if class16_r==.
(5204 real changes made, 5204 to missing)

. 
. lab var mod_winners1 "Modernization winners 1; SCP oesch "

. * Definition of value label
. lab define mod_winners1 1 "mod winners (SCP oesch)" 0 "not winner"

. lab values mod_winners1 mod_winners1

. 
. 
. 
. ************************************
. ************************************
. *       1.3 lm status: unempl, temp, involunt parttime
. 
. *** unemployed in last 5 years
. * Creation of variable
. gen unemployed5y=uemp5yr==1

. lab var unemployed5y "Unemployed in last 5 years"

. * Definition of value label
. lab define unemployed5y 1 "unemployed in last 5 years" 0 "other"

. lab values unemployed5y unemployed5y

. 
. 
. *** temporary employed
. * Creation of variable
. gen temp=wrkctr==2

. lab var temp "temporary employed (limited contract)"

. * Definition of value label
. lab define temp 1 "limited contract" 0 "other"

. lab values temp temp

. 
. 
. *** part-time
. * Creation of variable
. gen parttime=wkhct<30

. lab var parttime "parttime employed (<30h)"

. * Definition of value label
. lab define parttime 1 "parttime" 0 "other"

. lab values parttime parttime

. 
. 
. ************************************
. ************************************
. 
. *       1.4 other variables : country dummies, polint, age, age2, income?, gender, sector?
. 
. 
. 
. *** Age
. * Creation of variable
. gen age=2004-yrbrn

. lab var age "Age in years"

. gen age2=age^2

. lab var age2 "Age in years (squared)"

. 
. 
. *** Political interest
. * Creation of variable
. gen polint=polintr

. recode polint (1=4) (2=3) (3=2) (4=1)
(polint: 30184 changes made)

. lab var polint "Interest in politics"

. * Definition of value label
. lab define polint 4 "Very interested" 3 "Quite interested" 2 "Hardly interested" ///
>         1 "Not at all interested"

. lab values polint polint

. 
. *** income (difference between respondent class and median class per country)
. gen inc=hinctnt

. sum hinctnt if cntry=="AT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            4              1
10%            5              1       Obs                2256
25%            6              1       Sum of Wgt.        2256

50%            9                      Mean           38.61658
                        Largest       Std. Dev.      36.81134
75%           77             88
90%           88             88       Variance       1355.075
95%           88             88       Skewness       .2874171
99%           88             88       Kurtosis       1.126434

. replace inc=hinctnt-r(p50) if cntry=="AT"
(2256 real changes made)

. sum hinctnt if cntry=="BE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1778
25%            5              1       Sum of Wgt.        1778

50%            8                      Mean           24.08605
                        Largest       Std. Dev.      31.98902
75%           11             88
90%           88             88       Variance       1023.298
95%           88             88       Skewness       1.295368
99%           88             88       Kurtosis       2.734536

. replace inc=hinctnt-r(p50) if cntry=="BE"
(1778 real changes made)

. sum hinctnt if cntry=="CH", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            5              1
10%            6              1       Obs                2141
25%            8              1       Sum of Wgt.        2141

50%            9                      Mean           24.20878
                        Largest       Std. Dev.      30.09946
75%           11             88
90%           77             88       Variance       905.9774
95%           88             88       Skewness       1.391445
99%           88             88       Kurtosis       2.999084

. replace inc=hinctnt-r(p50) if cntry=="CH"
(2141 real changes made)

. sum hinctnt if cntry=="CZ", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="CZ"
(0 real changes made)

. sum hinctnt if cntry=="DE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2870
25%            6              1       Sum of Wgt.        2870

50%            8                      Mean            24.5331
                        Largest       Std. Dev.      31.73106
75%           12             88
90%           77             88       Variance        1006.86
95%           88             88       Skewness       1.219217
99%           88             88       Kurtosis       2.542267

. replace inc=hinctnt-r(p50) if cntry=="DE"
(2870 real changes made)

. sum hinctnt if cntry=="DK", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            5              1       Obs                1487
25%            7              1       Sum of Wgt.        1487

50%            9                      Mean           18.13988
                        Largest       Std. Dev.      26.79702
75%           10             99
90%           88             99       Variance         718.08
95%           88             99       Skewness       2.179674
99%           99             99       Kurtosis       5.853848

. replace inc=hinctnt-r(p50) if cntry=="DK"
(1487 real changes made)

. sum hinctnt if cntry=="EE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="EE"
(0 real changes made)

. sum hinctnt if cntry=="ES", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1663
25%            5              1       Sum of Wgt.        1663

50%            8                      Mean            34.7739
                        Largest       Std. Dev.      36.95464
75%           77             88
90%           88             88       Variance       1365.646
95%           88             88       Skewness       .5244849
99%           88             88       Kurtosis       1.318833

. replace inc=hinctnt-r(p50) if cntry=="ES"
(1663 real changes made)

. sum hinctnt if cntry=="FI", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            4              1       Obs                2022
25%            5              1       Sum of Wgt.        2022

50%            7                      Mean           13.57962
                        Largest       Std. Dev.      22.53087
75%            9             88
90%           11             88       Variance       507.6401
95%           88             88       Skewness       2.910752
99%           88             88       Kurtosis       9.600764

. replace inc=hinctnt-r(p50) if cntry=="FI"
(2022 real changes made)

. sum hinctnt if cntry=="FR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            3              1
10%            4              1       Obs                1806
25%            5              1       Sum of Wgt.        1806

50%            7                      Mean            18.8577
                        Largest       Std. Dev.      27.80289
75%            9             88
90%           77             88       Variance       773.0008
95%           88             88       Skewness       1.796051
99%           88             88       Kurtosis       4.311317

. replace inc=hinctnt-r(p50) if cntry=="FR"
(1806 real changes made)

. sum hinctnt if cntry=="GB", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            4              1       Obs                1897
25%            5              1       Sum of Wgt.        1897

50%            8                      Mean            23.2952
                        Largest       Std. Dev.        31.587
75%           11             88
90%           88             88       Variance       997.7388
95%           88             88       Skewness       1.370739
99%           88             99       Kurtosis       2.946161

. replace inc=hinctnt-r(p50) if cntry=="GB"
(1897 real changes made)

. sum hinctnt if cntry=="GR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2406
25%            4              1       Sum of Wgt.        2406

50%            6                      Mean           30.25187
                        Largest       Std. Dev.      36.11851
75%           77             88
90%           88             88       Variance       1304.547
95%           88             88       Skewness       .7304984
99%           88             88       Kurtosis       1.576578

. replace inc=hinctnt-r(p50) if cntry=="GR"
(2406 real changes made)

. sum hinctnt if cntry=="HU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="HU"
(0 real changes made)

. sum hinctnt if cntry=="IE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            4              1
10%            4              1       Obs                2286
25%            6              2       Sum of Wgt.        2286

50%            9                      Mean           24.66929
                        Largest       Std. Dev.      32.65727
75%           11             99
90%           88             99       Variance       1066.497
95%           88             99       Skewness       1.341596
99%           99             99       Kurtosis       2.874655

. replace inc=hinctnt-r(p50) if cntry=="IE"
(2286 real changes made)

. sum hinctnt if cntry=="IL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IL"
(0 real changes made)

. sum hinctnt if cntry=="IS", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IS"
(0 real changes made)

. sum hinctnt if cntry=="IT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IT"
(0 real changes made)

. sum hinctnt if cntry=="LU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="LU"
(0 real changes made)

. sum hinctnt if cntry=="NL", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1881
25%            5              1       Sum of Wgt.        1881

50%            7                      Mean           16.87932
                        Largest       Std. Dev.      25.71441
75%            9             88
90%           77             88       Variance       661.2306
95%           88             88       Skewness       2.170441
99%           88             88       Kurtosis       5.813534

. replace inc=hinctnt-r(p50) if cntry=="NL"
(1881 real changes made)

. sum hinctnt if cntry=="NO", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            5              1       Obs                1760
25%            8              1       Sum of Wgt.        1760

50%            9                      Mean           10.74659
                        Largest       Std. Dev.      13.45371
75%           10             88
90%           11             88       Variance       181.0023
95%           12             88       Skewness       5.337003
99%           88             88       Kurtosis       30.46623

. replace inc=hinctnt-r(p50) if cntry=="NO"
(1760 real changes made)

. sum hinctnt if cntry=="PL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PL"
(0 real changes made)

. sum hinctnt if cntry=="PT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2052
25%            4              1       Sum of Wgt.        2052

50%            6                      Mean           38.99756
                        Largest       Std. Dev.      41.96038
75%           88             99
90%           99             99       Variance       1760.673
95%           99             99       Skewness       .4024403
99%           99             99       Kurtosis        1.22852

. replace inc=hinctnt-r(p50) if cntry=="PT"
(2052 real changes made)

. sum hinctnt if cntry=="SE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            4              1
10%            5              1       Obs                1948
25%            6              1       Sum of Wgt.        1948

50%            8                      Mean            12.9384
                        Largest       Std. Dev.      21.07768
75%            9             99
90%           10             99       Variance       444.2684
95%           88             99       Skewness       3.268952
99%           88             99       Kurtosis       11.83396

. replace inc=hinctnt-r(p50) if cntry=="SE"
(1948 real changes made)

. sum hinctnt if cntry=="SI", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SI"
(0 real changes made)

. sum hinctnt if cntry=="SK", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SK"
(0 real changes made)

. lab var inc "Income, difference between respondet class and median class per country"

. 
. 
. ************************************
. ************************************
. *       1.5 Party choice and participation (adapted from Rommel&Walter)
. 
. *** Partisan preference, last election (not classified parties are missings)
. * Creation of variable
. gen party_vote=.
(30253 missing values generated)

. label var party_vote "Partisan preference, last election"

. * Austria
. replace   party_vote=3         if        prtvtat== 1
(372 real changes made)

. replace   party_vote=5         if        prtvtat== 2
(440 real changes made)

. replace   party_vote=7         if        prtvtat== 3
(59 real changes made)

. replace   party_vote=1         if        prtvtat== 4
(186 real changes made)

. replace   party_vote=4         if        prtvtat== 5
(4 real changes made)

. replace   party_vote=0         if        prtvtat== 6
(14 real changes made)

. * Belgium
. replace   party_vote=1         if        prtvtabe==1
(43 real changes made)

. replace   party_vote=5         if        prtvtabe==2
(193 real changes made)

. replace   party_vote=5         if        prtvtabe==3
(24 real changes made)

. replace   party_vote=3         if        prtvtabe==5
(189 real changes made)

. replace   party_vote=.         if        prtvtabe==6
(0 real changes made)

. replace   party_vote=7         if        prtvtabe==7
(127 real changes made)

. replace   party_vote=4         if        prtvtabe==8
(192 real changes made)

. replace   party_vote=5         if        prtvtabe==9
(72 real changes made)

. replace   party_vote=1         if        prtvtabe==10
(51 real changes made)

. replace   party_vote=7         if        prtvtabe==11
(22 real changes made)

. replace   party_vote=4         if        prtvtabe==12
(141 real changes made)

. replace   party_vote=3         if        prtvtabe==13
(190 real changes made)

. replace   party_vote=0         if        prtvtabe==14
(7 real changes made)

. replace   party_vote=.         if        prtvtabe==15
(0 real changes made)

. replace   party_vote=.         if        prtvtabe==16
(0 real changes made)

. * Switzerland
. replace   party_vote=4         if        prtvtch== 1
(123 real changes made)

. replace   party_vote=5         if        prtvtch== 2
(127 real changes made)

. replace   party_vote=3         if        prtvtch== 3
(245 real changes made)

. replace   party_vote=7         if        prtvtch== 4
(273 real changes made)

. replace   party_vote=4         if        prtvtch== 5
(28 real changes made)

. replace   party_vote=5         if        prtvtch== 7
(22 real changes made)

. replace   party_vote=.         if        prtvtch== 8
(0 real changes made)

. replace   party_vote=2         if        prtvtch== 9
(7 real changes made)

. replace   party_vote=1         if        prtvtch== 10
(93 real changes made)

. replace   party_vote=7         if        prtvtch== 11
(2 real changes made)

. replace   party_vote=7         if        prtvtch== 12
(15 real changes made)

. replace   party_vote=7         if        prtvtch== 13
(1 real change made)

. replace   party_vote=.         if        prtvtch== 14
(0 real changes made)

. replace   party_vote=7         if        prtvtch== 15
(1 real change made)

. replace   party_vote=0         if        prtvtch== 16
(74 real changes made)

. 
. * Germany
. replace   party_vote=3         if        prtvade1==1
(724 real changes made)

. replace   party_vote=5         if        prtvade1==2
(612 real changes made)

. replace   party_vote=1         if        prtvade1==3
(135 real changes made)

. replace   party_vote=4         if        prtvade1==4
(72 real changes made)

. replace   party_vote=2         if        prtvade1==5
(128 real changes made)

. replace   party_vote=7         if        prtvade1==6
(16 real changes made)

. replace   party_vote=7         if        prtvade1==7
(3 real changes made)

. replace   party_vote=0         if        prtvade1==8
(21 real changes made)

. * Denmark
. replace   party_vote=3         if        prtvtdk== 1
(319 real changes made)

. replace   party_vote=1         if        prtvtdk== 2
(81 real changes made)

. replace   party_vote=6         if        prtvtdk== 3
(91 real changes made)

. replace   party_vote=5         if        prtvtdk== 4
(15 real changes made)

. replace   party_vote=1         if        prtvtdk== 5
(97 real changes made)

. replace   party_vote=7         if        prtvtdk== 6
(88 real changes made)

. replace   party_vote=5         if        prtvtdk== 7
(24 real changes made)

. replace   party_vote=6         if        prtvtdk== 8
(414 real changes made)

. replace   party_vote=7         if        prtvtdk== 9
(9 real changes made)

. replace   party_vote=2         if        prtvtdk== 10
(25 real changes made)

. replace   party_vote=0         if        prtvtdk== 11
(8 real changes made)

. 
. * Spain
. replace   party_vote=6         if        prtvtaes==1
(337 real changes made)

. replace   party_vote=3         if        prtvtaes==2
(509 real changes made)

. replace   party_vote=2         if        prtvtaes==3
(59 real changes made)

. replace   party_vote=6         if        prtvtaes==4
(28 real changes made)

. replace   party_vote=0         if        prtvtaes==5
(18 real changes made)

. replace   party_vote=.         if        prtvtaes==6
(0 real changes made)

. replace   party_vote=0         if        prtvtaes==7
(13 real changes made)

. replace   party_vote=0         if        prtvtaes==8
(2 real changes made)

. replace   party_vote=0         if        prtvtaes==9
(3 real changes made)

. replace   party_vote=0         if        prtvtaes==10
(6 real changes made)

. replace   party_vote=0         if        prtvtaes==11
(6 real changes made)

. replace   party_vote=0         if        prtvtaes==12
(5 real changes made)

. replace   party_vote=0         if        prtvtaes==74
(10 real changes made)

. replace   party_vote=.         if        prtvtaes==75
(0 real changes made)

. replace   party_vote=.         if        prtvtaes==76
(0 real changes made)

. * Finland
. replace   party_vote=6         if        prtvtfi== 1
(295 real changes made)

. replace   party_vote=0         if        prtvtfi== 2
(63 real changes made)

. replace   party_vote=4         if        prtvtfi== 3
(3 real changes made)

. replace   party_vote=5         if        prtvtfi== 4
(305 real changes made)

. replace   party_vote=7         if        prtvtfi== 5
(12 real changes made)

. replace   party_vote=5         if        prtvtfi== 6
(60 real changes made)

. replace   party_vote=.         if        prtvtfi== 7
(0 real changes made)

. replace   party_vote=1         if        prtvtfi== 8
(126 real changes made)

. replace   party_vote=3         if        prtvtfi== 9
(344 real changes made)

. replace   party_vote=2         if        prtvtfi== 10
(80 real changes made)

. replace   party_vote=.         if        prtvtfi== 11
(0 real changes made)

. replace   party_vote=.         if        prtvtfi== 12
(0 real changes made)

. replace   party_vote=0         if        prtvtfi== 14
(14 real changes made)

. * France
. replace   party_vote=.         if        prtvtfr== 1
(0 real changes made)

. replace   party_vote=4         if        prtvtfr== 2
(6 real changes made)

. replace   party_vote=7         if        prtvtfr== 3
(82 real changes made)

. replace   party_vote=.         if        prtvtfr== 4
(0 real changes made)

. replace   party_vote=.         if        prtvtfr== 5
(0 real changes made)

. replace   party_vote=2         if        prtvtfr== 6
(5 real changes made)

. replace   party_vote=7         if        prtvtfr== 7
(8 real changes made)

. replace   party_vote=.         if        prtvtfr== 8
(0 real changes made)

. replace   party_vote=2         if        prtvtfr== 9
(35 real changes made)

. replace   party_vote=3         if        prtvtfr== 10
(381 real changes made)

. replace   party_vote=.         if        prtvtfr== 11
(0 real changes made)

. replace   party_vote=6         if        prtvtfr== 12
(256 real changes made)

. replace   party_vote=4         if        prtvtfr== 13
(65 real changes made)

. replace   party_vote=1         if        prtvtfr== 14
(72 real changes made)

. replace   party_vote=.         if        prtvtfr== 15
(0 real changes made)

. replace   party_vote=0         if        prtvtfr== 16
(22 real changes made)

. * Great Britain
. replace   party_vote=6         if        prtvtgb== 1
(307 real changes made)

. replace   party_vote=3         if        prtvtgb== 2
(554 real changes made)

. replace   party_vote=4         if        prtvtgb== 3
(174 real changes made)

. replace   party_vote=0         if        prtvtgb== 4
(18 real changes made)

. replace   party_vote=0         if        prtvtgb== 5
(2 real changes made)

. replace   party_vote=.         if        prtvtgb== 6
(0 real changes made)

. replace   party_vote=0         if        prtvtgb== 7
(19 real changes made)

. replace   party_vote=6         if        prtvtgb== 11
(3 real changes made)

. replace   party_vote=0         if        prtvtgb== 12
(3 real changes made)

. replace   party_vote=2         if        prtvtgb== 13
(7 real changes made)

. replace   party_vote=3         if        prtvtgb== 14
(7 real changes made)

. replace   party_vote=0         if        prtvtgb== 22
(5 real changes made)

. * Greece
. replace   party_vote=3         if        prtvtagr==1
(448 real changes made)

. replace   party_vote=6         if        prtvtagr==2
(721 real changes made)

. replace   party_vote=2         if        prtvtagr==3
(68 real changes made)

. replace   party_vote=2         if        prtvtagr==4
(53 real changes made)

. replace   party_vote=3         if        prtvtagr==5
(5 real changes made)

. replace   party_vote=7         if        prtvtagr==6
(20 real changes made)

. replace   party_vote=0         if        prtvtagr==7
(34 real changes made)

. 
. * Ireland
. replace   party_vote=6         if        prtvtie== 1
(816 real changes made)

. replace   party_vote=5         if        prtvtie== 2
(361 real changes made)

. replace   party_vote=3         if        prtvtie== 3
(165 real changes made)

. replace   party_vote=4         if        prtvtie== 4
(28 real changes made)

. replace   party_vote=1         if        prtvtie== 5
(52 real changes made)

. replace   party_vote=2         if        prtvtie== 6
(96 real changes made)

. replace   party_vote=.         if        prtvtie== 7
(0 real changes made)

. replace   party_vote=0         if        prtvtie== 8
(9 real changes made)

. 
. * Italy
. replace   party_vote=3         if        prtvtait==1
(0 real changes made)

. replace   party_vote=5         if        prtvtait==2
(0 real changes made)

. replace   party_vote=2         if        prtvtait==3
(0 real changes made)

. replace   party_vote=1         if        prtvtait==4
(0 real changes made)

. replace   party_vote=0         if        prtvtait==6
(0 real changes made)

. replace   party_vote=2         if        prtvtait==7
(0 real changes made)

. replace   party_vote=6         if        prtvtait==8
(0 real changes made)

. replace   party_vote=7         if        prtvtait==9
(0 real changes made)

. replace   party_vote=5         if        prtvtait==10
(0 real changes made)

. replace   party_vote=7         if        prtvtait==11
(0 real changes made)

. replace   party_vote=3         if        prtvtait==12
(0 real changes made)

. replace   party_vote=.         if        prtvtait==13
(0 real changes made)

. replace   party_vote=0         if        prtvtait==14
(0 real changes made)

. replace   party_vote=.         if        prtvtait==15
(0 real changes made)

. replace   party_vote=7         if        prtvtait==16
(0 real changes made)

. replace   party_vote=0         if        prtvtait==17
(0 real changes made)

. replace   party_vote=.         if        prtvtait==18
(0 real changes made)

. replace   party_vote=3         if        prtvtait==19
(0 real changes made)

. replace   party_vote=.         if        prtvtait==70
(0 real changes made)

. 
. * Netherlands
. replace   party_vote=5         if        prtvtanl==1
(390 real changes made)

. replace   party_vote=3         if        prtvtanl==2
(388 real changes made)

. replace   party_vote=4         if        prtvtanl==3
(261 real changes made)

. replace   party_vote=7         if        prtvtanl==4
(41 real changes made)

. replace   party_vote=4         if        prtvtanl==5
(61 real changes made)

. replace   party_vote=1         if        prtvtanl==6
(88 real changes made)

. replace   party_vote=2         if        prtvtanl==7
(108 real changes made)

. replace   party_vote=5         if        prtvtanl==8
(31 real changes made)

. replace   party_vote=4         if        prtvtanl==9
(6 real changes made)

. replace   party_vote=4         if        prtvtanl==10
(15 real changes made)

. replace   party_vote=0         if        prtvtanl==11
(11 real changes made)

. replace   party_vote=0         if        prtvtanl==12
(4 real changes made)

. replace   party_vote=.         if        prtvtanl==13
(0 real changes made)

. * Norway
. replace   party_vote=.         if        prtvtno== 1
(0 real changes made)

. replace   party_vote=2         if        prtvtno== 2
(190 real changes made)

. replace   party_vote=3         if        prtvtno== 3
(361 real changes made)

. replace   party_vote=4         if        prtvtno== 4
(51 real changes made)

. replace   party_vote=5         if        prtvtno== 5
(118 real changes made)

. replace   party_vote=5         if        prtvtno== 6
(83 real changes made)

. replace   party_vote=6         if        prtvtno== 7
(274 real changes made)

. replace   party_vote=7         if        prtvtno== 8
(196 real changes made)

. replace   party_vote=.         if        prtvtno== 9
(0 real changes made)

. replace   party_vote=0         if        prtvtno== 10
(17 real changes made)

. 
. * Portugal
. replace   party_vote=2         if        prtvtpt== 1
(31 real changes made)

. replace   party_vote=5         if        prtvtpt== 2
(22 real changes made)

. replace   party_vote=.         if        prtvtpt== 4
(0 real changes made)

. replace   party_vote=2         if        prtvtpt== 5
(66 real changes made)

. replace   party_vote=.         if        prtvtpt== 6
(0 real changes made)

. replace   party_vote=7         if        prtvtpt== 9
(1 real change made)

. replace   party_vote=3         if        prtvtpt== 10
(426 real changes made)

. replace   party_vote=5         if        prtvtpt== 11
(372 real changes made)

. replace   party_vote=0         if        prtvtpt== 12
(3 real changes made)

. replace   party_vote=.         if        prtvtpt== 13
(0 real changes made)

. * Sweden
. replace   party_vote=5         if        prtvtse== 1
(88 real changes made)

. replace   party_vote=4         if        prtvtse== 2
(167 real changes made)

. replace   party_vote=5         if        prtvtse== 3
(87 real changes made)

. replace   party_vote=1         if        prtvtse== 4
(58 real changes made)

. replace   party_vote=6         if        prtvtse== 5
(289 real changes made)

. replace   party_vote=3         if        prtvtse== 6
(605 real changes made)

. replace   party_vote=2         if        prtvtse== 7
(126 real changes made)

. replace   party_vote=0         if        prtvtse== 8
(47 real changes made)

. 
. * Definition of value labels
. label def party_vote 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_vote party_vote

. 
. *** Party closeness (not classified parties are missings)
. * Creation of variable
. gen party_close=.
(30253 missing values generated)

. label var party_close "Party closeness"

. * Austria: no observations
. * Belgium
. replace   party_close=1         if        prtclabe==1
(49 real changes made)

. replace   party_close=5         if        prtclabe==2
(119 real changes made)

. replace   party_close=5         if        prtclabe==3
(20 real changes made)

. replace   party_close=5         if        prtclabe==4
(0 real changes made)

. replace   party_close=3         if        prtclabe==5
(112 real changes made)

. replace   party_close=.         if        prtclabe==6
(0 real changes made)

. replace   party_close=7         if        prtclabe==7
(5 real changes made)

. replace   party_close=4         if        prtclabe==8
(69 real changes made)

. replace   party_close=5         if        prtclabe==9
(104 real changes made)

. replace   party_close=1         if        prtclabe==10
(57 real changes made)

. replace   party_close=7         if        prtclabe==11
(61 real changes made)

. replace   party_close=4         if        prtclabe==12
(4 real changes made)

. replace   party_close=3         if        prtclabe==13
(108 real changes made)

. replace   party_close=.         if        prtclabe==14
(0 real changes made)

. replace   party_close=.         if        prtclabe==15
(0 real changes made)

. replace   party_close=0         if        prtclabe==16
(0 real changes made)

. replace   party_close=.         if        prtclabe==17
(0 real changes made)

. replace   party_close=.         if        prtclabe==18
(0 real changes made)

. * Switzerland
. replace   party_close=4         if        prtclch==1
(180 real changes made)

. replace   party_close=5         if        prtclch==2
(119 real changes made)

. replace   party_close=3         if        prtclch==3
(369 real changes made)

. replace   party_close=7         if        prtclch==4
(291 real changes made)

. replace   party_close=4         if        prtclch==5
(26 real changes made)

. replace   party_close=.         if        prtclch==6
(0 real changes made)

. replace   party_close=2         if        prtclch==7
(22 real changes made)

. replace   party_close=1         if        prtclch==8
(4 real changes made)

. replace   party_close=.         if        prtclch==9
(0 real changes made)

. replace   party_close=7         if        prtclch==10
(89 real changes made)

. replace   party_close=7         if        prtclch==11
(2 real changes made)

. replace   party_close=5         if        prtclch==12
(14 real changes made)

. replace   party_close=7         if        prtclch==13
(0 real changes made)

. replace   party_close=.         if        prtclch==18
(0 real changes made)

. replace   party_close=.         if        prtclch==19
(0 real changes made)

. replace   party_close=0         if        prtclch==20
(0 real changes made)

. 
. * Germany
. replace   party_close=3         if        prtclade==1
(385 real changes made)

. replace   party_close=5         if        prtclade==2
(391 real changes made)

. replace   party_close=1         if        prtclade==3
(173 real changes made)

. replace   party_close=4         if        prtclade==4
(47 real changes made)

. replace   party_close=2         if        prtclade==5
(103 real changes made)

. replace   party_close=7         if        prtclade==6
(17 real changes made)

. replace   party_close=7         if        prtclade==7
(8 real changes made)

. replace   party_close=0         if        prtclade==8
(15 real changes made)

. * Denmark
. replace   party_close=3         if        prtcldk==1
(280 real changes made)

. replace   party_close=1         if        prtcldk==2
(86 real changes made)

. replace   party_close=6         if        prtcldk==3
(70 real changes made)

. replace   party_close=1         if        prtcldk==4
(7 real changes made)

. replace   party_close=7         if        prtcldk==5
(112 real changes made)

. replace   party_close=5         if        prtcldk==6
(75 real changes made)

. replace   party_close=4         if        prtcldk==7
(15 real changes made)

. replace   party_close=0         if        prtcldk==8
(320 real changes made)

. replace   party_close=2         if        prtcldk==9
(11 real changes made)

. replace   party_close=0         if        prtcldk==10
(22 real changes made)

. 
. * Spain
. replace   party_close=6         if        prtclaes==1
(252 real changes made)

. replace   party_close=3         if        prtclaes==2
(380 real changes made)

. replace   party_close=2         if        prtclaes==3
(60 real changes made)

. replace   party_close=6         if        prtclaes==4
(30 real changes made)

. replace   party_close=0         if        prtclaes==5
(18 real changes made)

. replace   party_close=0         if        prtclaes==6
(5 real changes made)

. replace   party_close=0         if        prtclaes==7
(13 real changes made)

. replace   party_close=0         if        prtclaes==8
(3 real changes made)

. replace   party_close=.         if        prtclaes==9
(0 real changes made)

. replace   party_close=.         if        prtclaes==10
(0 real changes made)

. replace   party_close=0         if        prtclaes==74
(16 real changes made)

. replace   party_close=.         if        prtclaes==75
(0 real changes made)

. replace   party_close=.         if        prtclaes==76
(0 real changes made)

. * Finland
. replace   party_close=6         if        prtclfi==1
(206 real changes made)

. replace   party_close=0         if        prtclfi==2
(60 real changes made)

. replace   party_close=4         if        prtclfi==3
(3 real changes made)

. replace   party_close=5         if        prtclfi==4
(244 real changes made)

. replace   party_close=7         if        prtclfi==5
(7 real changes made)

. replace   party_close=5         if        prtclfi==6
(52 real changes made)

. replace   party_close=.         if        prtclfi==8
(0 real changes made)

. replace   party_close=.         if        prtclfi==9
(0 real changes made)

. replace   party_close=.         if        prtclfi==11
(0 real changes made)

. replace   party_close=1         if        prtclfi==13
(0 real changes made)

. replace   party_close=3         if        prtclfi==14
(4 real changes made)

. replace   party_close=2         if        prtclfi==15
(0 real changes made)

. replace   party_close=.         if        prtclfi==16
(0 real changes made)

. replace   party_close=.         if        prtclfi==17
(0 real changes made)

. replace   party_close=.         if        prtclfi==18
(0 real changes made)

. replace   party_close=0         if        prtclfi==19
(0 real changes made)

. * France
. replace   party_close=.         if        prtclfr ==1
(0 real changes made)

. replace   party_close=7         if        prtclfr==2
(5 real changes made)

. replace   party_close=2         if        prtclfr==3
(36 real changes made)

. replace   party_close=2         if        prtclfr==4
(12 real changes made)

. replace   party_close=.         if        prtclfr==5
(0 real changes made)

. replace   party_close=4         if        prtclfr==6
(0 real changes made)

. replace   party_close=2         if        prtclfr==7
(8 real changes made)

. replace   party_close=3         if        prtclfr==8
(14 real changes made)

. replace   party_close=.         if        prtclfr==9
(0 real changes made)

. replace   party_close=4         if        prtclfr==10
(390 real changes made)

. replace   party_close=6         if        prtclfr==11
(9 real changes made)

. replace   party_close=1         if        prtclfr==12
(225 real changes made)

. replace   party_close=.         if        prtclfr==13
(0 real changes made)

. replace   party_close=0         if        prtclfr==14
(67 real changes made)

. replace   party_close=0         if        prtclfr==15
(11 real changes made)

. replace   party_close=0         if        prtclfr==16
(2 real changes made)

. replace   party_close=.         if        prtclfr==17
(0 real changes made)

. replace   party_close=.         if        prtclfr==18
(0 real changes made)

. * Great Britain
. replace   party_close=6         if        prtclgb== 1
(258 real changes made)

. replace   party_close=3         if        prtclgb== 2
(401 real changes made)

. replace   party_close=4         if        prtclgb== 3
(131 real changes made)

. replace   party_close=0         if        prtclgb== 4
(21 real changes made)

. replace   party_close=0         if        prtclgb== 5
(0 real changes made)

. replace   party_close=.         if        prtclgb== 6
(0 real changes made)

. replace   party_close=0         if        prtclgb== 7
(24 real changes made)

. replace   party_close=6         if        prtclgb== 11
(3 real changes made)

. replace   party_close=0         if        prtclgb== 12
(2 real changes made)

. replace   party_close=2         if        prtclgb== 13
(8 real changes made)

. replace   party_close=3         if        prtclgb== 14
(7 real changes made)

. replace   party_close=0         if        prtclgb== 15
(0 real changes made)

. * Greece
. replace   party_close=3         if        prtclagr==1
(385 real changes made)

. replace   party_close=6         if        prtclagr==2
(614 real changes made)

. replace   party_close=2         if        prtclagr==3
(80 real changes made)

. replace   party_close=7         if        prtclagr==4
(46 real changes made)

. replace   party_close=2         if        prtclagr==5
(1 real change made)

. replace   party_close=.         if        prtclagr==6
(0 real changes made)

. replace   party_close=.         if        prtclagr==7
(0 real changes made)

. replace   party_close=.         if        prtclagr==8
(0 real changes made)

. replace   party_close=.         if        prtclagr==9
(0 real changes made)

. replace   party_close=.         if        prtclagr==10
(0 real changes made)

. replace   party_close=.         if        prtclagr==11
(0 real changes made)

. replace   party_close=.         if        prtclagr==12
(0 real changes made)

. replace   party_close=.         if        prtclagr==13
(0 real changes made)

. replace   party_close=0         if        prtclagr==14
(0 real changes made)

. 
. * Ireland
. replace   party_close=6         if        prtclie==1
(514 real changes made)

. replace   party_close=5         if        prtclie==2
(261 real changes made)

. replace   party_close=1         if        prtclie==3
(101 real changes made)

. replace   party_close=.         if        prtclie==4
(0 real changes made)

. replace   party_close=3         if        prtclie==5
(45 real changes made)

. replace   party_close=.         if        prtclie==6
(0 real changes made)

. replace   party_close=2         if        prtclie==7
(11 real changes made)

. replace   party_close=2         if        prtclie==8
(0 real changes made)

. replace   party_close=.         if        prtclie==9
(0 real changes made)

. replace   party_close=0         if        prtclie==10
(0 real changes made)

. 
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg: no observations
. * Netherlands
. replace   party_close=4         if        prtclanl==1
(225 real changes made)

. replace   party_close=3         if        prtclanl==2
(322 real changes made)

. replace   party_close=7         if        prtclanl==3
(177 real changes made)

. replace   party_close=5         if        prtclanl==4
(28 real changes made)

. replace   party_close=2         if        prtclanl==5
(47 real changes made)

. replace   party_close=4         if        prtclanl==6
(83 real changes made)

. replace   party_close=1         if        prtclanl==7
(103 real changes made)

. replace   party_close=5         if        prtclanl==8
(32 real changes made)

. replace   party_close=4         if        prtclanl==9
(4 real changes made)

. replace   party_close=.         if        prtclanl==10
(0 real changes made)

. replace   party_close=.         if        prtclanl==11
(0 real changes made)

. replace   party_close=0         if        prtclanl==12
(6 real changes made)

. replace   party_close=.         if        prtclanl==13
(0 real changes made)

. * Norway
. replace   party_close=.         if        prtclno==1
(0 real changes made)

. replace   party_close=2         if        prtclno==2
(173 real changes made)

. replace   party_close=3         if        prtclno==3
(318 real changes made)

. replace   party_close=4         if        prtclno==4
(35 real changes made)

. replace   party_close=5         if        prtclno==5
(66 real changes made)

. replace   party_close=5         if        prtclno==6
(73 real changes made)

. replace   party_close=6         if        prtclno==7
(197 real changes made)

. replace   party_close=7         if        prtclno==8
(206 real changes made)

. replace   party_close=.         if        prtclno==9
(0 real changes made)

. replace   party_close=0         if        prtclno==10
(6 real changes made)

. 
. * Portugal
. replace   party_close=2         if        prtclapt==1
(49 real changes made)

. replace   party_close=5         if        prtclapt==2
(18 real changes made)

. replace   party_close=2         if        prtclapt==3
(2 real changes made)

. replace   party_close=.         if        prtclapt==4
(0 real changes made)

. replace   party_close=.         if        prtclapt==6
(0 real changes made)

. replace   party_close=.         if        prtclapt==7
(0 real changes made)

. replace   party_close=7         if        prtclapt==8
(0 real changes made)

. replace   party_close=.         if        prtclapt==9
(0 real changes made)

. replace   party_close=5         if        prtclapt==10
(406 real changes made)

. replace   party_close=3         if        prtclapt==11
(332 real changes made)

. replace   party_close=.         if        prtclapt==12
(0 real changes made)

. replace   party_close=0         if        prtclapt==13
(2 real changes made)

. * Sweden
. replace   party_close=5         if        prtclse==1
(62 real changes made)

. replace   party_close=4         if        prtclse==2
(124 real changes made)

. replace   party_close=5         if        prtclse==3
(50 real changes made)

. replace   party_close=1         if        prtclse==4
(57 real changes made)

. replace   party_close=6         if        prtclse==5
(272 real changes made)

. replace   party_close=3         if        prtclse==6
(462 real changes made)

. replace   party_close=2         if        prtclse==7
(113 real changes made)

. replace   party_close=.         if        prtclse==8
(0 real changes made)

. replace   party_close=.         if        prtclse==9
(0 real changes made)

. replace   party_close=7         if        prtclse==10
(0 real changes made)

. replace   party_close=0         if        prtclse==11
(0 real changes made)

. 
. * Definition of value labels
. label def party_close 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Nationalist"

. label val party_close party_close

. 
. *** Voter participation
. * Creation of variable 
. gen voted=vote==1

. replace voted=. if vote>2
(2671 real changes made, 2671 to missing)

. lab var voted "Voter participation"

. * Definition of value label
. lab define voted 1 "Voter" 0 "Non-voter"

. lab values voted voted

. 
. save "ESSrecoded2.dta", replace
file ESSrecoded2.dta saved

. 
. 
. 
. 
. *----------------------------------------------------------------------------------------*
. *       3. prepare/recode ESS3
. *----------------------------------------------------------------------------------------*
. 
. *----------------------------------------------------------------------------------------*
. *       1. Operationalization of variables, round 2 - 2004
. *----------------------------------------------------------------------------------------*
. 
. 
. * Import dataset (from ESS website)
. use ESS3e03_5.dta

. 
. 
. *       1.0 country selection: 
. * AT, BE, CH, GE, DK, SP, FIN, FR, UK, GR, IE, IT, NL, NO, PT, SE
.  
. drop if cntry=="CZ"
(0 observations deleted)

. drop if cntry=="HU"
(1518 observations deleted)

. drop if cntry=="LU"
(0 observations deleted)

. drop if cntry=="PL"
(1721 observations deleted)

. drop if cntry=="SI"
(1476 observations deleted)

. drop if cntry=="IL"
(0 observations deleted)

. drop if cntry=="EE"
(1517 observations deleted)

. drop if cntry=="IS"
(0 observations deleted)

. drop if cntry=="SK"
(1766 observations deleted)

. drop if cntry=="TR"
(0 observations deleted)

. drop if cntry=="UA"
(2002 observations deleted)

. drop if cntry=="RU"
(2437 observations deleted)

. drop if cntry=="BG"
(1400 observations deleted)

. drop if cntry=="CY"
(995 observations deleted)

. drop if cntry=="LV"
(0 observations deleted)

. drop if cntry=="RO"
(0 observations deleted)

. 
. 
. gen at=cntry=="AT"

. lab var at "Country dummy Austria"

. gen be=cntry=="BE"

. lab var be "Country dummy Belgium"

. gen ch=cntry=="CH"

. lab var ch "Country dummy Switzerland"

. gen de=cntry=="DE"

. lab var de "Country dummy Germany"

. gen dk=cntry=="DK"

. lab var dk "Country dummy Denmark"

. gen es=cntry=="ES"

. lab var es "Country dummy Spain"

. gen fi=cntry=="FI"

. lab var fi "Country dummy Finland"

. gen fr=cntry=="FR"

. lab var fr "Country dummy France"

. gen gb=cntry=="GB"

. lab var gb "Country dummy United Kingdom"

. gen gr=cntry=="GR"

. lab var gr "Country dummy Greece"

. gen ie=cntry=="IE"

. lab var ie "Country dummy Ireland"

. gen it=cntry=="IT"

. lab var it "Country dummy Italy"

. gen nl=cntry=="NL"

. lab var nl "Country dummy Netherlands"

. gen no=cntry=="NO"

. lab var no "Country dummy Norway"

. gen pt=cntry=="PT"

. lab var pt "Country dummy Portugal"

. gen se=cntry=="SE"

. lab var se "Country dummy Sweden"

. 
. 
. *******************************
. *   1.1 GLOBALIZATION LOSERS
. *******************************
. 
. ** from Rommel /Walter: combination of offshoreable and low-skill (educlvl und offshore2)
. 
. * Creation of variable
. gen educyrs=eduyrs

. lab var educyrs "Years of Education"

. * Recoding of variable
. replace educyrs=25 if eduyrs>25 & eduyrs<.
(460 real changes made)

. 
. 
. ***** 2.2 Education level
. *----------------------------------------------------------------------------------------*
. 
. * Creation of variable
. gen educlvl=edulvla

. lab var educlvl "Education level"

. * Recoding of variable and definition of value label
. recode educlvl (55=.)
(educlvl: 2 changes made)

. label define educlvl 1 "Less than lower secondary education" ///
>         2 "Lower secondary education completed" ///
>         3 "Upper secondary education completed" ///
>         4 "Post-secondary, non-tertiary education completed" ///
>         5 "Tertiary education completed"

. label values educlvl educlvl

. 
. 
. *** Creation of 4-digit ISCO-Code
. gen isco=iscoco

. lab var isco "4-digit ISCO-code"

. 
. *** Metric offshoreability variable     
. * Creation of variable
. gen offshore=.
(28168 missing values generated)

. replace offshore=0 if isco<.
(28168 real changes made)

. replace offshore=49 if isco==1142
(4 real changes made)

. replace offshore=55 if isco==1222
(88 real changes made)

. replace offshore=28 if isco==1226
(36 real changes made)

. replace offshore=55 if isco==1228
(19 real changes made)

. replace offshore=83 if isco==1231
(136 real changes made)

. replace offshore=49 if isco==1232
(50 real changes made)

. replace offshore=40 if isco==1233
(115 real changes made)

. replace offshore=53 if isco==1234
(31 real changes made)

. replace offshore=49 if isco==1235
(24 real changes made)

. replace offshore=55 if isco==1236
(40 real changes made)

. replace offshore=55 if isco==1237
(34 real changes made)

. replace offshore=55 if isco==1311
(60 real changes made)

. replace offshore=55 if isco==1312
(77 real changes made)

. replace offshore=55 if isco==1313
(73 real changes made)

. replace offshore=55 if isco==1314
(301 real changes made)

. replace offshore=55 if isco==1315
(126 real changes made)

. replace offshore=48 if isco==1316
(42 real changes made)

. replace offshore=52 if isco==1317
(96 real changes made)

. replace offshore=55 if isco==1318
(36 real changes made)

. replace offshore=55 if isco==1319
(152 real changes made)

. replace offshore=66 if isco==2111
(10 real changes made)

. replace offshore=74 if isco==2112
(2 real changes made)

. replace offshore=66 if isco==2113
(23 real changes made)

. replace offshore=66 if isco==2114
(2 real changes made)

. replace offshore=89 if isco==2121
(3 real changes made)

. replace offshore=96 if isco==2122
(4 real changes made)

. replace offshore=83 if isco==2131
(137 real changes made)

. replace offshore=90 if isco==2139
(57 real changes made)

. replace offshore=25 if isco==2141
(70 real changes made)

. replace offshore=64 if isco==2143
(35 real changes made)

. replace offshore=74 if isco==2144
(43 real changes made)

. replace offshore=72 if isco==2146
(13 real changes made)

. replace offshore=69 if isco==2147
(5 real changes made)

. replace offshore=86 if isco==2148
(21 real changes made)

. replace offshore=71 if isco==2149
(108 real changes made)

. replace offshore=81 if isco==2211
(30 real changes made)

. replace offshore=83 if isco==2212
(8 real changes made)

. replace offshore=72 if isco==2411
(103 real changes made)

. replace offshore=50 if isco==2419
(185 real changes made)

. replace offshore=74 if isco==2421
(45 real changes made)

. replace offshore=67 if isco==2444
(24 real changes made)

. replace offshore=90 if isco==2451
(81 real changes made)

. replace offshore=78 if isco==2452
(56 real changes made)

. replace offshore=25 if isco==2453
(37 real changes made)

. replace offshore=48 if isco==2455
(24 real changes made)

. replace offshore=47 if isco==3111
(37 real changes made)

. replace offshore=47 if isco==3113
(55 real changes made)

. replace offshore=47 if isco==3114
(72 real changes made)

. replace offshore=72 if isco==3115
(92 real changes made)

. replace offshore=47 if isco==3116
(16 real changes made)

. replace offshore=94 if isco==3118
(69 real changes made)

. replace offshore=54 if isco==3119
(115 real changes made)

. replace offshore=75 if isco==3121
(63 real changes made)

. replace offshore=84 if isco==3122
(46 real changes made)

. replace offshore=68 if isco==3123
(2 real changes made)

. replace offshore=36 if isco==3131
(40 real changes made)

. replace offshore=36 if isco==3132
(10 real changes made)

. replace offshore=46 if isco==3133
(19 real changes made)

. replace offshore=34 if isco==3139
(6 real changes made)

. replace offshore=52 if isco==3141
(12 real changes made)

. replace offshore=60 if isco==3152
(97 real changes made)

. replace offshore=55 if isco==3211
(34 real changes made)

. replace offshore=55 if isco==3212
(5 real changes made)

. replace offshore=44 if isco==3213
(2 real changes made)

. replace offshore=32 if isco==3228
(22 real changes made)

. replace offshore=51 if isco==3411
(23 real changes made)

. replace offshore=85 if isco==3412
(89 real changes made)

. replace offshore=50 if isco==3414
(16 real changes made)

. replace offshore=55 if isco==3416
(65 real changes made)

. replace offshore=59 if isco==3419
(187 real changes made)

. replace offshore=51 if isco==3421
(13 real changes made)

. replace offshore=48 if isco==3422
(7 real changes made)

. replace offshore=38 if isco==3431
(305 real changes made)

. replace offshore=51 if isco==3432
(66 real changes made)

. replace offshore=84 if isco==3433
(196 real changes made)

. replace offshore=84 if isco==3434
(10 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=100 if isco==3442
(27 real changes made)

. replace offshore=85 if isco==3471
(80 real changes made)

. replace offshore=30 if isco==3472
(9 real changes made)

. replace offshore=95 if isco==4111
(25 real changes made)

. replace offshore=94 if isco==4112
(9 real changes made)

. replace offshore=100 if isco==4113
(33 real changes made)

. replace offshore=71 if isco==4114
(2 real changes made)

. replace offshore=38 if isco==4115
(405 real changes made)

. replace offshore=84 if isco==4121
(217 real changes made)

. replace offshore=54 if isco==4122
(122 real changes made)

. replace offshore=31 if isco==4131
(181 real changes made)

. replace offshore=67 if isco==4132
(86 real changes made)

. replace offshore=67 if isco==4133
(105 real changes made)

. replace offshore=46 if isco==4141
(62 real changes made)

. replace offshore=26 if isco==4142
(136 real changes made)

. replace offshore=95 if isco==4143
(5 real changes made)

. replace offshore=54 if isco==4144
(13 real changes made)

. replace offshore=54 if isco==4190
(695 real changes made)

. replace offshore=94 if isco==4211
(132 real changes made)

. replace offshore=54 if isco==4214
(1 real change made)

. replace offshore=65 if isco==4215
(6 real changes made)

. replace offshore=72 if isco==4221
(31 real changes made)

. replace offshore=54 if isco==4222
(145 real changes made)

. replace offshore=50 if isco==4223
(106 real changes made)

. replace offshore=86 if isco==5113
(11 real changes made)

. replace offshore=59 if isco==6142
(0 real changes made)

. replace offshore=36 if isco==7111
(18 real changes made)

. replace offshore=35 if isco==7112
(3 real changes made)

. replace offshore=36 if isco==7113
(11 real changes made)

. replace offshore=65 if isco==7211
(15 real changes made)

. replace offshore=69 if isco==7212
(71 real changes made)

. replace offshore=70 if isco==7213
(46 real changes made)

. replace offshore=70 if isco==7222
(59 real changes made)

. replace offshore=68 if isco==7223
(47 real changes made)

. replace offshore=68 if isco==7224
(13 real changes made)

. replace offshore=26 if isco==7311
(23 real changes made)

. replace offshore=64 if isco==7313
(16 real changes made)

. replace offshore=69 if isco==7321
(8 real changes made)

. replace offshore=69 if isco==7322
(9 real changes made)

. replace offshore=68 if isco==7323
(0 real changes made)

. replace offshore=68 if isco==7324
(6 real changes made)

. replace offshore=60 if isco==7331
(14 real changes made)

. replace offshore=75 if isco==7332
(9 real changes made)

. replace offshore=59 if isco==7341
(30 real changes made)

. replace offshore=59 if isco==7342
(3 real changes made)

. replace offshore=59 if isco==7343
(9 real changes made)

. replace offshore=34 if isco==7344
(10 real changes made)

. replace offshore=59 if isco==7345
(14 real changes made)

. replace offshore=75 if isco==7346
(6 real changes made)

. replace offshore=68 if isco==7413
(6 real changes made)

. replace offshore=27 if isco==7414
(9 real changes made)

. replace offshore=55 if isco==7415
(2 real changes made)

. replace offshore=43 if isco==7421
(9 real changes made)

. replace offshore=57 if isco==7422
(85 real changes made)

. replace offshore=57 if isco==7423
(11 real changes made)

. replace offshore=66 if isco==7424
(1 real change made)

. replace offshore=75 if isco==7431
(5 real changes made)

. replace offshore=75 if isco==7432
(14 real changes made)

. replace offshore=75 if isco==7433
(125 real changes made)

. replace offshore=73 if isco==7434
(6 real changes made)

. replace offshore=75 if isco==7435
(11 real changes made)

. replace offshore=75 if isco==7436
(109 real changes made)

. replace offshore=57 if isco==7437
(15 real changes made)

. replace offshore=75 if isco==7441
(3 real changes made)

. replace offshore=72 if isco==7442
(40 real changes made)

. replace offshore=36 if isco==8111
(10 real changes made)

. replace offshore=36 if isco==8112
(4 real changes made)

. replace offshore=36 if isco==8113
(0 real changes made)

. replace offshore=59 if isco==8121
(15 real changes made)

. replace offshore=68 if isco==8122
(11 real changes made)

. replace offshore=70 if isco==8123
(5 real changes made)

. replace offshore=68 if isco==8124
(3 real changes made)

. replace offshore=69 if isco==8131
(14 real changes made)

. replace offshore=68 if isco==8139
(8 real changes made)

. replace offshore=57 if isco==8141
(20 real changes made)

. replace offshore=68 if isco==8142
(6 real changes made)

. replace offshore=68 if isco==8143
(12 real changes made)

. replace offshore=68 if isco==8151
(0 real changes made)

. replace offshore=70 if isco==8152
(0 real changes made)

. replace offshore=68 if isco==8153
(1 real change made)

. replace offshore=68 if isco==8154
(0 real changes made)

. replace offshore=29 if isco==8155
(1 real change made)

. replace offshore=68 if isco==8159
(6 real changes made)

. replace offshore=42 if isco==8161
(10 real changes made)

. replace offshore=55 if isco==8162
(6 real changes made)

. replace offshore=29 if isco==8163
(10 real changes made)

. replace offshore=64 if isco==8171
(0 real changes made)

. replace offshore=68 if isco==8172
(0 real changes made)

. replace offshore=68 if isco==8211
(76 real changes made)

. replace offshore=68 if isco==8212
(11 real changes made)

. replace offshore=68 if isco==8221
(12 real changes made)

. replace offshore=35 if isco==8222
(5 real changes made)

. replace offshore=68 if isco==8223
(16 real changes made)

. replace offshore=41 if isco==8224
(2 real changes made)

. replace offshore=29 if isco==8229
(4 real changes made)

. replace offshore=69 if isco==8231
(10 real changes made)

. replace offshore=68 if isco==8232
(32 real changes made)

. replace offshore=57 if isco==8240
(13 real changes made)

. replace offshore=58 if isco==8251
(40 real changes made)

. replace offshore=59 if isco==8252
(4 real changes made)

. replace offshore=68 if isco==8253
(18 real changes made)

. replace offshore=75 if isco==8261
(25 real changes made)

. replace offshore=75 if isco==8262
(22 real changes made)

. replace offshore=75 if isco==8263
(91 real changes made)

. replace offshore=75 if isco==8264
(28 real changes made)

. replace offshore=75 if isco==8265
(2 real changes made)

. replace offshore=75 if isco==8266
(11 real changes made)

. replace offshore=75 if isco==8269
(22 real changes made)

. replace offshore=27 if isco==8271
(34 real changes made)

. replace offshore=68 if isco==8272
(7 real changes made)

. replace offshore=68 if isco==8273
(3 real changes made)

. replace offshore=30 if isco==8274
(15 real changes made)

. replace offshore=31 if isco==8275
(6 real changes made)

. replace offshore=68 if isco==8276
(2 real changes made)

. replace offshore=27 if isco==8277
(1 real change made)

. replace offshore=68 if isco==8278
(11 real changes made)

. replace offshore=66 if isco==8281
(36 real changes made)

. replace offshore=66 if isco==8282
(38 real changes made)

. replace offshore=66 if isco==8283
(33 real changes made)

. replace offshore=68 if isco==8284
(22 real changes made)

. replace offshore=57 if isco==8285
(9 real changes made)

. replace offshore=64 if isco==8286
(4 real changes made)

. replace offshore=68 if isco==8290
(109 real changes made)

. replace offshore=34 if isco==8340
(22 real changes made)

. replace offshore=95 if isco==9113
(29 real changes made)

. replace offshore=64 if isco==9321
(0 real changes made)

. replace offshore=29 if isco==9333
(0 real changes made)

. replace offshore=55 if isco==1227
(36 real changes made)

. replace offshore=89 if isco==2121
(0 real changes made)

. replace offshore=100 if isco==2132
(0 real changes made)

. replace offshore=70 if isco==2145
(57 real changes made)

. replace offshore=71 if isco==2149
(0 real changes made)

. replace offshore=81 if isco==2211
(0 real changes made)

. replace offshore=46 if isco==2412
(74 real changes made)

. replace offshore=50 if isco==2419
(0 real changes made)

. replace offshore=33 if isco==2432
(25 real changes made)

. replace offshore=89 if isco==2441
(29 real changes made)

. replace offshore=48 if isco==2455
(0 real changes made)

. replace offshore=72 if isco==3115
(0 real changes made)

. replace offshore=54 if isco==3119
(0 real changes made)

. replace offshore=46 if isco==3133
(0 real changes made)

. replace offshore=34 if isco==3139
(0 real changes made)

. replace offshore=34 if isco==3224
(22 real changes made)

. replace offshore=51 if isco==3411
(0 real changes made)

. replace offshore=25 if isco==3415
(305 real changes made)

. replace offshore=50 if isco==3417
(11 real changes made)

. replace offshore=59 if isco==3419
(0 real changes made)

. replace offshore=51 if isco==3432
(0 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=90 if isco==3460
(182 real changes made)

. replace offshore=54 if isco==4122
(0 real changes made)

. replace offshore=31 if isco==4131
(0 real changes made)

. replace offshore=67 if isco==4132
(0 real changes made)

. replace offshore=46 if isco==4141
(0 real changes made)

. replace offshore=26 if isco==4142
(0 real changes made)

. replace offshore=54 if isco==4222
(0 real changes made)

. replace offshore=68 if isco==7141
(130 real changes made)

. replace offshore=68 if isco==7224
(0 real changes made)

. replace offshore=65 if isco==7241
(116 real changes made)

. replace offshore=34 if isco==7344
(0 real changes made)

. replace offshore=72 if isco==7442
(0 real changes made)

. replace offshore=68 if isco==8122
(0 real changes made)

. replace offshore=68 if isco==8139
(0 real changes made)

. replace offshore=42 if isco==8161
(0 real changes made)

. replace offshore=68 if isco==8211
(0 real changes made)

. replace offshore=68 if isco==8223
(0 real changes made)

. replace offshore=41 if isco==8224
(0 real changes made)

. replace offshore=57 if isco==8240
(0 real changes made)

. replace offshore=58 if isco==8251
(0 real changes made)

. replace offshore=75 if isco==8269
(0 real changes made)

. replace offshore=66 if isco==8281
(0 real changes made)

. replace offshore=66 if isco==8283
(0 real changes made)

. replace offshore=68 if isco==8284
(0 real changes made)

. replace offshore=68 if isco==8290
(0 real changes made)

. replace offshore=70 if isco==9322
(0 real changes made)

. lab var offshore "Offshoring Potential (Blinder 2007), metric"

. 
. *** Creation of ordinal (4-point scale) offshoreability variable
. * Creation of variable
. gen offshore4=.
(28168 missing values generated)

. replace offshore4=4 if offshore<.
(28168 real changes made)

. replace offshore4=3 if offshore<75
(25900 real changes made)

. replace offshore4=2 if offshore<50
(20641 real changes made)

. replace offshore4=1 if offshore<25
(18222 real changes made)

. lab var offshore4 "Offshoring Potential (Blinder 2007), ordinal"

. * Definition of value label
. lab define offshore4 1 "0-24%" 2 "5-49%" 3 "50-74%" 4 "75-100%"

. lab values offshore4 offshore4

. 
. *** Creation of dichotomous offshoreability variable
. * Creation of variable
. gen offshore2=.
(28168 missing values generated)

. replace offshore2=1 if offshore>0 & offshore<.
(9946 real changes made)

. replace offshore2=0 if offshore==0
(18222 real changes made)

. lab var offshore2 "Offshoring Potential (Blinder 2007), dichotomous"

. * Definition of value label
. lab define offshore2 0 "Not offshoreable" 1 "Offshoreable"

. lab values offshore2 offshore2

. 
. 
. ***********************
. 
. *** Creation of globalization loser variable 1 : low-skilled offshoreable
. * Creation of variable
. gen glob_losers1=.
(28168 missing values generated)

. replace glob_losers1=1 if offshore2==1 & educlvl<3
(2635 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl<3
(7257 real changes made)

. replace glob_losers1=0 if offshore2==1 & educlvl>2
(7311 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl>2
(10965 real changes made)

. lab var glob_losers1 "Globalization losers; lowskilled exposed "

. * Definition of value label
. lab define glob_losers1 1 "glob loser (l-s off)" 0 "not loser"

. lab values glob_losers1 glob_losers1

. 
. *** Creation of winner variable 1: low-skilled sheltered
. * Creation of variable
. gen glob_winners1=.
(28168 missing values generated)

. replace glob_winners1 =0 if offshore2==1 & educlvl<3
(2635 real changes made)

. replace glob_winners1 =1 if offshore2==0 & educlvl<3
(7257 real changes made)

. replace glob_winners1 =0 if offshore2==1 & educlvl>2
(7311 real changes made)

. replace glob_winners1 =0 if offshore2==0 & educlvl>2
(10965 real changes made)

. lab var glob_winners1 "Globalization winners; lowskilled sheltered "

. * Definition of value label
. lab define glob_winners1 1 "glob winners (l-s sheltered)" 0 "not winner"

. lab values glob_winners1 glob_losers1

. 
. 
. 
. ************************************
. *       1.2 MODERNIZATION LOSERS
. 
. * Oesch 16-classes for respondents only (according to syntax on his website)
. 
. ****************************************************************************************
. * Respondent's Oesch class position
. * Recode and create variables used to construct class variable for respondents
. * Variables used to construct class variable for respondents: iscoco, emplrel, emplno
. ****************************************************************************************
. 
. **** Recode occupation variable (isco88 com 4-digit) for respondents
. 
. tab iscoco

               Occupation, ISCO88 (com) |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                           Armed forces |         73        0.26        0.26
Legislators, senior officials and manag |         15        0.05        0.31
       Legislators and senior officials |          1        0.00        0.32
Legislators, senior government official |         54        0.19        0.51
Senior officials of special-interest or |          2        0.01        0.51
Senior officials of political-party org |          3        0.01        0.53
Senior officials of economic-interest o |          4        0.01        0.54
 Senior off human, special-interest org |          1        0.00        0.54
                     Corporate managers |          2        0.01        0.55
         Directors and chief executives |        120        0.43        0.98
     Production and operations managers |         30        0.11        1.08
Managers agriculture,hunting,forestry,f |          8        0.03        1.11
              Managers in manufacturing |         88        0.31        1.42
               Managers in construction |         45        0.16        1.58
 Managers in wholesale and retail trade |         48        0.17        1.75
     Managers in restaurants and hotels |         30        0.11        1.86
Managers transport,storage,communicatio |         36        0.13        1.99
Managers in business services enterpris |         36        0.13        2.12
Managers personal care,cleaning,rel ser |         19        0.07        2.18
      Managers not elsewhere classified |        138        0.49        2.67
              Other specialist managers |         31        0.11        2.78
   Finance and administration  managers |        136        0.48        3.27
Personnel and industrial relations mana |         50        0.18        3.44
           Sales and marketing managers |        115        0.41        3.85
Advertising and public relations manage |         31        0.11        3.96
      Supply and distribution  managers |         24        0.09        4.05
            Computing services managers |         40        0.14        4.19
      Research and development managers |         34        0.12        4.31
Oth spec managers not elsewhere classif |        101        0.36        4.67
          Managers of small enterprises |          5        0.02        4.69
          Managers of small enterprises |         20        0.07        4.76
Mngr small ent agr,hunting,forestry,fis |         60        0.21        4.97
        Mngr small ent in manufacturing |         77        0.27        5.24
         Mngr small ent in construction |         73        0.26        5.50
Mngr small ent wholesale and retail tra |        301        1.07        6.57
Mngr small ent of restaurants and hotel |        126        0.45        7.02
     Mngr small ent transp,storage,comm |         42        0.15        7.17
Mngr small ent of business serv enterpr |         96        0.34        7.51
Mngr small ent pers care,cleaning,rel s |         36        0.13        7.64
Mngr small ent not elsewhere classified |        152        0.54        8.18
                          Professionals |          4        0.01        8.19
Phys, mathem, engin science professiona |          4        0.01        8.20
Physics, chemists, related professional |          4        0.01        8.22
             Physicists and astronomers |         10        0.04        8.25
                         Meteorologists |          2        0.01        8.26
                               Chemists |         23        0.08        8.34
           Geologists and geophysicists |          2        0.01        8.35
Mathematicians and related professional |          3        0.01        8.36
                          Statisticians |          4        0.01        8.37
                Computing professionals |         54        0.19        8.57
Comp systems designers,analysts,program |        137        0.49        9.05
Comp professionals not elsewhere classi |         57        0.20        9.26
Architects,engineers,related profession |         24        0.09        9.34
  Architects, town and traffic planners |         70        0.25        9.59
                        Civil engineers |         51        0.18        9.77
                   Electrical engineers |         35        0.12        9.89
Electronics, telecommunications enginee |         43        0.15       10.05
                   Mechanical engineers |         57        0.20       10.25
                     Chemical engineers |         13        0.05       10.30
Mining engineers, metall,rel profession |          5        0.02       10.31
            Cartographers and surveyors |         21        0.07       10.39
Arch, engin,rel prof not elsewhere clas |        108        0.38       10.77
  Life science and health professionals |          2        0.01       10.78
             Life science professionals |          2        0.01       10.79
Biol,botan,zool and related professiona |         30        0.11       10.89
Pharm, pathol and related professionals |          8        0.03       10.92
  Agronomists and related professionals |         17        0.06       10.98
  Health professionals (except nursing) |          5        0.02       11.00
                        Medical doctors |        113        0.40       11.40
                               Dentists |         26        0.09       11.49
                          Veterinarians |         17        0.06       11.55
                            Pharmacists |         24        0.09       11.64
Health prof (not nursing) not elsew cla |         23        0.08       11.72
    Nursing and midwifery professionals |        231        0.82       12.54
                 Teaching professionals |         43        0.15       12.69
   Coll,univ, higher educ teaching prof |        160        0.57       13.26
Secondary education teaching profession |        454        1.61       14.87
Primary and pre-primary educ teaching p |         63        0.22       15.10
Primary education teaching professional |        308        1.09       16.19
Pre-primary educ teaching professionals |         25        0.09       16.28
Special education teaching professional |         50        0.18       16.45
           Other teaching professionals |         16        0.06       16.51
          Education methods specialists |         26        0.09       16.60
                      School inspectors |          6        0.02       16.63
Other teaching prof not elsewhere class |         94        0.33       16.96
                    Other professionals |          4        0.01       16.97
                 Business professionals |          9        0.03       17.01
                            Accountants |        103        0.37       17.37
    Personnel and careers professionals |         74        0.26       17.63
 Business prof not elsewhere classified |        185        0.66       18.29
                    Legal professionals |          9        0.03       18.32
                                Lawyers |         45        0.16       18.48
                                 Judges |          7        0.02       18.51
    Legal prof not elsewhere classified |         45        0.16       18.67
                Archivists and curators |         11        0.04       18.71
    Librarians,related information prof |         25        0.09       18.79
Social science and related professional |          9        0.03       18.83
                             Economists |         29        0.10       18.93
Sociologists, anthropologists, rel prof |          9        0.03       18.96
Philosophers,historians,political scien |          5        0.02       18.98
Philologists, translators and interpret |         24        0.09       19.06
                          Psychologists |         35        0.12       19.19
              Social work professionals |         99        0.35       19.54
Writers and creative or performing arti |          4        0.01       19.55
 Authors, journalists and other writers |         81        0.29       19.84
Sculptors, painters and related artists |         56        0.20       20.04
       Composers, musicians and singers |         37        0.13       20.17
             Choreographers and dancers |          9        0.03       20.20
Film, stage and related actors and dire |         24        0.09       20.29
                Religious professionals |         33        0.12       20.41
Public service administrative professio |         88        0.31       20.72
Technicians and associate professionals |          4        0.01       20.73
Physical,engineering science associate  |         33        0.12       20.85
Physical,engineering science technician |         28        0.10       20.95
Chemical and physical science technicia |         37        0.13       21.08
          Civil engineering technicians |         80        0.28       21.36
     Electrical engineering technicians |         55        0.20       21.56
Electronics,telecom engineering technic |         72        0.26       21.82
     Mechanical engineering technicians |         92        0.33       22.14
       Chemical engineering technicians |         16        0.06       22.20
   Mining and metallurgical technicians |         11        0.04       22.24
                        Draughtspersons |         69        0.24       22.48
Phys, engin science techn not elsew cla |        115        0.41       22.89
       Computer associate professionals |         71        0.25       23.14
                    Computer assistants |         63        0.22       23.37
           Computer equipment operators |         46        0.16       23.53
           Industrial robot controllers |          2        0.01       23.54
Optical and electronic equipment operat |          2        0.01       23.54
 Photogr,image,sound rec equipment oper |         40        0.14       23.69
Broadcasting,telecom equipment operator |         10        0.04       23.72
            Medical equipment operators |         19        0.07       23.79
Optical,electr equipm oper not elsew cl |          6        0.02       23.81
Ship, aircraft controllers and technici |          5        0.02       23.83
                       Ships' engineers |         12        0.04       23.87
        Ships' deck officers and pilots |         13        0.05       23.92
Aircraft pilots, related associated pro |          9        0.03       23.95
                Air traffic controllers |          4        0.01       23.96
         Air traffic safety technicians |          2        0.01       23.97
          Safety and quality inspectors |          7        0.02       24.00
           Building and fire inspectors |          5        0.02       24.01
  Safety, health and quality inspectors |         97        0.34       24.36
 Life,science and health associate prof |          4        0.01       24.37
Life,science techn and rel associate pr |          2        0.01       24.38
               Life science technicians |         34        0.12       24.50
      Agronomy and forestry technicians |          5        0.02       24.52
          Farming and forestry advisers |          2        0.01       24.52
 Health associate prof (except nursing) |         15        0.05       24.58
                     Medical assistants |         34        0.12       24.70
Hygienists, health environmental office |          4        0.01       24.71
           Dieticians and nutritionists |         10        0.04       24.75
             Optometrists and opticians |         22        0.08       24.83
                      Dental assistants |         26        0.09       24.92
Physiotherapists and rel associate prof |         79        0.28       25.20
                  Veterinary assistants |          7        0.02       25.22
              Pharmaceutical assistants |         22        0.08       25.30
Health ass prof excpt nursing not else  |         98        0.35       25.65
       Nursing midwifery associate prof |         13        0.05       25.70
        Nursing associate professionals |        371        1.32       27.01
      Midwifery associate professionals |         18        0.06       27.08
       Teaching associate professionals |         10        0.04       27.11
Primary education teaching associate pr |        116        0.41       27.52
Pre-primary edu teaching associate prof |        113        0.40       27.93
Special education teaching associate pr |         41        0.15       28.07
 Other teaching associate professionals |        121        0.43       28.50
          Other associate professionals |         32        0.11       28.61
Finance and sales associate professiona |         64        0.23       28.84
Securities and finance dealers and brok |         23        0.08       28.92
              Insurance representatives |         89        0.32       29.24
                          Estate agents |         58        0.21       29.44
      Travel consultants and organisers |         16        0.06       29.50
     Technical and commercial sales rep |        305        1.08       30.58
                                 Buyers |         65        0.23       30.82
    Appraisers, valuers and auctioneers |         11        0.04       30.85
Finance,sales associate prof not else c |        187        0.66       31.52
Business services agents and trade brok |          7        0.02       31.54
                          Trade brokers |         13        0.05       31.59
         Clearing and forwarding agents |          7        0.02       31.61
Employment agents and labour contractor |         26        0.09       31.71
Busines,serv,agnts,trde brokr not else  |         37        0.13       31.84
 Administrative associate professionals |        134        0.48       32.31
Adm secretaries, related associate prof |        305        1.08       33.40
  Legal related business associate prof |         66        0.23       33.63
                            Bookkeepers |        196        0.70       34.33
Statistical, mathemat rel associate pro |         10        0.04       34.36
  Custom,tax,related gov associate prof |         29        0.10       34.46
          Customs and border inspectors |          8        0.03       34.49
    Government tax and excise officials |         27        0.10       34.59
   Government social benefits officials |         20        0.07       34.66
         Government licensing officials |          9        0.03       34.69
Custom,tax,rel gov assoc prof not else  |         21        0.07       34.77
       Police inspectors and detectives |         39        0.14       34.90
    Social work associate professionals |        182        0.65       35.55
Artistic,entertainment,sports associate |         14        0.05       35.60
    Decorators and commercial designers |         80        0.28       35.88
 Radio, television and other announcers |          9        0.03       35.92
Street,nightclub,rel musicians,singers, |         12        0.04       35.96
Clowns,magicians,acrobats, rel associat |          5        0.02       35.98
Athletes,sportspers, related associate  |         49        0.17       36.15
      Religious associate professionals |         10        0.04       36.19
                                 Clerks |        101        0.36       36.55
                          Office clerks |         41        0.15       36.69
Secretaries and keyboard-operating cler |        180        0.64       37.33
              Stenographers and typists |         25        0.09       37.42
   Word-processor and related operators |          9        0.03       37.45
                   Data entry operators |         33        0.12       37.57
          Calculating-machine operators |          2        0.01       37.57
                            Secretaries |        405        1.44       39.01
                       Numerical clerks |         54        0.19       39.20
      Accounting and bookkeeping clerks |        217        0.77       39.97
         Statistical and finance clerks |        122        0.43       40.41
Material-recording and transport clerks |         26        0.09       40.50
                           Stock clerks |        181        0.64       41.14
                      Production clerks |         86        0.31       41.45
                       Transport clerks |        105        0.37       41.82
       Library, mail and related clerks |          2        0.01       41.83
              Library and filing clerks |         62        0.22       42.05
       Mail carriers and sorting clerks |        136        0.48       42.53
Coding, proof-reading and related clerk |          5        0.02       42.55
            Scribes and related workers |         13        0.05       42.59
                    Other office clerks |        695        2.47       45.06
               Customer services clerks |         13        0.05       45.11
   Cashiers, tellers and related clerks |         47        0.17       45.27
             Cashiers and ticket clerks |        132        0.47       45.74
       Tellers and other counter clerks |         86        0.31       46.05
               Bookmakers and croupiers |          6        0.02       46.07
          Pawnbrokers and money-lenders |          1        0.00       46.07
    Debt-collectors and related workers |          6        0.02       46.09
              Client information clerks |         34        0.12       46.22
       Travel agency and related clerks |         31        0.11       46.33
   Receptionists and information clerks |        145        0.51       46.84
        Telephone switchboard operators |        106        0.38       47.22
Service workers,shop, market sales work |          2        0.01       47.22
Personal and protective services worker |          3        0.01       47.23
  Travel attendants and related workers |          1        0.00       47.24
  Travel attendants and travel stewards |         25        0.09       47.33
                   Transport conductors |         25        0.09       47.42
                          Travel guides |         11        0.04       47.45
Housekeeping, restaurant services worke |         64        0.23       47.68
       Housekeepers and related workers |         64        0.23       47.91
                                  Cooks |        322        1.14       49.05
     Waiters, waitresses and bartenders |        416        1.48       50.53
      Personal care and related workers |         47        0.17       50.70
                     Child-care workers |        395        1.40       52.10
Institution-based personal care workers |        473        1.68       53.78
       Home-based personal care workers |        253        0.90       54.68
Personal care,related workers not else  |        106        0.38       55.05
        Other personal services workers |          8        0.03       55.08
Hairdress,barber,beautician, related wo |        249        0.88       55.96
                  Companions and valets |          7        0.02       55.99
              Undertakers and embalmers |          3        0.01       56.00
Other pers service workers not else cla |         67        0.24       56.24
            Protective services workers |         10        0.04       56.27
                          Fire-fighters |         28        0.10       56.37
                        Police officers |         88        0.31       56.68
                          Prison guards |         12        0.04       56.73
Protective services workers not else cl |         63        0.22       56.95
 Models, salespersons and demonstrators |         10        0.04       56.99
               Fashion and other models |          2        0.01       56.99
Shop,stall,market salespers, demonstrat |      1,393        4.95       61.94
Skilled agricultural and fishery worker |          4        0.01       61.95
      Market gardeners and crop growers |         26        0.09       62.05
       Field crop and vegetable growers |         77        0.27       62.32
Gardeners, horticultural, nursery growe |        147        0.52       62.84
   Animal producers and related workers |          8        0.03       62.87
          Dairy and livestock producers |        133        0.47       63.34
                      Poultry producers |          8        0.03       63.37
Animal prod, related workers not else c |         13        0.05       63.42
              Crop and animal producers |        310        1.10       64.52
           Forestry and related workers |         16        0.06       64.57
           Forestry workers and loggers |         21        0.07       64.65
  Fishery workers, hunters and trappers |          9        0.03       64.68
       Aquatic-life cultivation workers |          1        0.00       64.68
Inland and coastal waters fishery worke |         13        0.05       64.73
               Deep-sea fishery workers |          6        0.02       64.75
                   Hunters and trappers |          4        0.01       64.76
       Craft and related trades workers |         12        0.04       64.81
 Extraction and building trades workers |          2        0.01       64.81
              Miners and quarry workers |         18        0.06       64.88
                Shotfirers and blasters |          3        0.01       64.89
   Stone splitters, cutters and carvers |         11        0.04       64.93
Building frame and related trades worke |         25        0.09       65.02
                               Builders |         72        0.26       65.27
            Bricklayers and stonemasons |        227        0.81       66.08
Concrete placer,concrete finisher, rel  |         39        0.14       66.22
                 Carpenters and joiners |        233        0.83       67.04
Build frame, rel trade worker not else  |         60        0.21       67.26
Build finishers, related trades workers |          3        0.01       67.27
                                Roofers |         23        0.08       67.35
          Floor layers and tile setters |         24        0.09       67.43
                             Plasterers |         20        0.07       67.51
                     Insulation workers |         21        0.07       67.58
                               Glaziers |         12        0.04       67.62
              Plumbers and pipe fitters |        115        0.41       68.03
      Building and related electricians |        105        0.37       68.40
Build finisher,rel trde work not else c |         16        0.06       68.46
Painter,building struct cleaner,rel trd |          7        0.02       68.49
           Painters and related workers |        130        0.46       68.95
            Building structure cleaners |         11        0.04       68.99
Metal, machinery related trades workers |         10        0.04       69.02
Metalm,welder,sheetmet,structmet prep,r |         21        0.07       69.10
          Metal moulders and coremakers |         15        0.05       69.15
               Welders and flamecutters |         71        0.25       69.40
                    Sheet-metal workers |         46        0.16       69.56
Structural-metal preparers and erectors |         46        0.16       69.73
             Riggers and cable splicers |          5        0.02       69.75
                     Underwater workers |          2        0.01       69.75
Blacksmiths,tool-makers,related trad wo |          1        0.00       69.76
Blacksmith, hammer-smith,forging-press  |         30        0.11       69.86
        Tool-makers and related workers |         59        0.21       70.07
Machine-tool setters and setter-operato |         47        0.17       70.24
Metal wheelgrinder, polisher, tool shar |         13        0.05       70.29
        Machinery mechanics and fitters |         60        0.21       70.50
    Motor vehicle mechanics and fitters |        189        0.67       71.17
  Aircraft engine mechanics and fitters |         14        0.05       71.22
Agric- or industrmachine mechanic and f |        113        0.40       71.62
Electric,electronic equip mech and fitt |         13        0.05       71.67
Electric mechanic, fitters and servicer |        116        0.41       72.08
Electronic mecanic, fitters and service |         37        0.13       72.21
Telegraph, teleph installers and servic |         17        0.06       72.27
Electric line install,repairer,cable jo |         21        0.07       72.34
Precision,handicraft,printing,rel trade |          9        0.03       72.38
Precision workers in metal and rel mate |          2        0.01       72.38
Precision-instrument makers and repaire |         23        0.08       72.47
   Musical instrument makers and tuners |          2        0.01       72.47
   Jewellery and precious-metal workers |         16        0.06       72.53
Abrasive wheel former,potter and rel wo |          8        0.03       72.56
Glass-makers,cutters,grinders and finis |          9        0.03       72.59
Glass,ceramics and rel decorative paint |          6        0.02       72.61
Handicrft work wood,textile,leather,rel |          4        0.01       72.62
Handicrft work in wood and related mate |         14        0.05       72.67
Handicrft work in textile,leather,rel m |          9        0.03       72.71
Craft printing and related trades worke |          7        0.02       72.73
Compositors,typesetters, related worker |         30        0.11       72.84
         Stereotypers and electrotypers |          3        0.01       72.85
         Printing engravers and etchers |          9        0.03       72.88
       Photographic and related workers |         10        0.04       72.92
        Bookbinders and related workers |         14        0.05       72.97
Silk-screen,block,craft textile printer |          6        0.02       72.99
 Other craft and related trades workers |          8        0.03       73.02
Food processing and related trades work |          2        0.01       73.02
Butchers,fishmongers,related food prepa |         81        0.29       73.31
Bakers,pastry-cooks,confectionery maker |         79        0.28       73.59
                 Dairy products workers |          6        0.02       73.61
Fruit, vegetable and related preservers |          9        0.03       73.64
  Food and beverage tasters and graders |          2        0.01       73.65
Tobacco preparers,tobacco products make |          4        0.01       73.67
Wood treaters,cabinet-makers,rel trad w |          2        0.01       73.67
                          Wood treaters |          9        0.03       73.70
      Cabinetmakers and related workers |         85        0.30       74.01
Woodworking machine setter,setter-opera |         11        0.04       74.05
Basketry weavers,brush makers,rel worke |          1        0.00       74.05
 Textile,garment, related trades worker |          8        0.03       74.08
                        Fibre preparers |          5        0.02       74.09
  Weavers, knitters and related workers |         14        0.05       74.14
       Tailors, dressmakers and hatters |        125        0.44       74.59
           Furriers and related workers |          6        0.02       74.61
Textile,leather,rel patternmakers, cutt |         11        0.04       74.65
Sewers, embroiderers and related worker |        109        0.39       75.04
       Upholsterers and related workers |         15        0.05       75.09
 Pelt dressers, tanners and fellmongers |          3        0.01       75.10
        Shoe-makers and related workers |         40        0.14       75.24
Plant and machine operators and assembl |         12        0.04       75.28
 Stationary plant and related operators |          9        0.03       75.32
Mining, mineral-processing-plant operat |          6        0.02       75.34
                 Mining plant operators |         10        0.04       75.37
Mineralore,stone-processing-plant opera |          4        0.01       75.39
       Metal-processing plant operators |          4        0.01       75.40
        Ore and metal furnace operators |         15        0.05       75.45
Metal melters,casters,rolling-mill oper |         11        0.04       75.49
    Metal-heat-treating-plant operators |          5        0.02       75.51
            Metal drawers and extruders |          3        0.01       75.52
Glass, ceramics,related plant operators |          1        0.00       75.53
Glass,ceramics kiln,related machine ope |         14        0.05       75.58
Glass,ceramic,rel plant operat not else |          8        0.03       75.60
Wood-processing, papermaking-plant oper |          6        0.02       75.62
        Wood-processing-plant operators |         20        0.07       75.70
             Paper-pulp plant operators |          6        0.02       75.72
            Papermaking-plant operators |         12        0.04       75.76
    Chemical-processing-plant operators |         17        0.06       75.82
Chemical,filtering,separating-equip ope |          1        0.00       75.82
Petrol,natural gas refin plant operator |          1        0.00       75.83
Chemicalprocess,plant operat not else c |          6        0.02       75.85
Power-Prod. and related plant operators |          3        0.01       75.86
       Power-production plant operators |         10        0.04       75.89
      Steam-engine and boiler operators |          6        0.02       75.92
Incinerator,watertreatment,rel plant op |         10        0.04       75.95
             Industrial robot operators |         14        0.05       76.00
       Machine operators and assemblers |         14        0.05       76.05
 Metal,mineralproducts machine operator |          6        0.02       76.07
                 Machine-tool operators |         76        0.27       76.34
Cement, other mineral prod machine oper |         11        0.04       76.38
    Chemical-products machine operators |          8        0.03       76.41
Pharmaceutical,toiletry-prod machine op |         12        0.04       76.45
Ammunition,explosive products machine o |          5        0.02       76.47
Metal finish, plating,coatingmachine op |         16        0.06       76.53
Photographic-products machine operators |          2        0.01       76.53
Chemicalprod, machine operat not else c |          4        0.01       76.55
Rubber,plasticproducts machine operator |          2        0.01       76.55
      Rubber-products machine operators |         10        0.04       76.59
     Plastic-products machine operators |         32        0.11       76.70
        Wood-products machine operators |         13        0.05       76.75
Printing,binding,paperprod machine oper |          5        0.02       76.77
             Printing-machine operators |         40        0.14       76.91
          Bookbinding-machine operators |          4        0.01       76.92
       Paper-products machine operators |         18        0.06       76.99
Textile,fur,leatherprod machine operato |         16        0.06       77.04
Fibreprep,spinning winding-machine oper |         25        0.09       77.13
Weaving- and knitting-machine operators |         22        0.08       77.21
               Sewing-machine operators |         91        0.32       77.53
Bleaching,dyeing,cleaning-machine opera |         28        0.10       77.63
         Fur,leatherprep machine operat |          2        0.01       77.64
Shoemaking- and related machine operato |         11        0.04       77.68
Textl,fur,leatherprod mach operat n els |         22        0.08       77.76
 Food,related products machine operator |         20        0.07       77.83
     Meat, fishprocess machine operator |         34        0.12       77.95
       Dairy-products machine operators |          7        0.02       77.98
Grain- and spice-milling-machine operat |          3        0.01       77.99
Baked g,cereal,chocolateprod machine op |         15        0.05       78.04
Fruit,vegetable,nutprocess-machine oper |          6        0.02       78.06
     Sugar production machine operators |          2        0.01       78.07
Tea, coffee, cocoaprocess-machine opera |          1        0.00       78.07
Brewer,wine, other beverage machine ope |         11        0.04       78.11
   Tobacco production machine operators |          3        0.01       78.12
                             Assemblers |         20        0.07       78.19
        Mechanical-machinery assemblers |         36        0.13       78.32
        Electrical-equipment assemblers |         38        0.13       78.45
        Electronic-equipment assemblers |         33        0.12       78.57
   Metal,rubber,plastic-prod assemblers |         22        0.08       78.65
   Wood and related products assemblers |          9        0.03       78.68
Paperboard,textile, related prod assemb |          4        0.01       78.70
          Composite products assemblers |          7        0.02       78.72
    Other machine operat not else class |        109        0.39       79.11
     Drivers and mobile plant operators |          2        0.01       79.11
              Locomotive engine drivers |         25        0.09       79.20
Railway brakers, signallers and shunter |         13        0.05       79.25
                  Motor vehicle drivers |         27        0.10       79.35
                     Motorcycle drivers |          1        0.00       79.35
              Car, taxi and van drivers |        142        0.50       79.85
                   Bus and tram drivers |         74        0.26       80.12
          Heavy truck and lorry drivers |        265        0.94       81.06
Agricultural,other mobile plant operato |          6        0.02       81.08
Motorised farm, forestry plant operator |         16        0.06       81.13
Earth-moving  and related plant operato |         50        0.18       81.31
Crane, hoist and related plant operator |         37        0.13       81.44
                Lifting-truck operators |         54        0.19       81.64
  Ships' deck crews and related workers |         22        0.08       81.71
                 Elementary occupations |         22        0.08       81.79
Sales and services elementary occupatio |         31        0.11       81.90
     Street vendors and related workers |          5        0.02       81.92
                         Street vendors |         23        0.08       82.00
Door-to-door and telephone salespersons |         29        0.10       82.10
Shoe cleaning,other streetserv element  |          3        0.01       82.11
Domestic,related helpers,cleaner,launde |        144        0.51       82.63
          Domestic helpers and cleaners |        373        1.32       83.95
Helper,cleaner in office,hotel,other es |        776        2.75       86.70
           Hand-launderers and pressers |         38        0.13       86.84
Building caretakers,window, rel cleaner |          3        0.01       86.85
                    Building caretakers |        124        0.44       87.29
   Vehicle, window and related cleaners |         11        0.04       87.33
Messengers,porters doorkeepers,rel work |          7        0.02       87.35
Messengers,package,luggage porter, deli |        101        0.36       87.71
Doorkeepers,watchpersons,related worker |         96        0.34       88.05
Vendingm,money collect, meter reader,re |          7        0.02       88.08
Garbage collectors and related labourer |          5        0.02       88.10
                     Garbage collectors |         17        0.06       88.16
         Sweepers and related labourers |         34        0.12       88.28
 Agricultural,fishery,related labourers |          1        0.00       88.28
 Agricultural,fishery,related labourers |         58        0.21       88.49
               Farm-hands and labourers |        150        0.53       89.02
                     Forestry labourers |          9        0.03       89.05
Fishery, hunting and trapping labourers |          1        0.00       89.05
Labourer mining,construction,manufact,t |          7        0.02       89.08
      Mining and construction labourers |          3        0.01       89.09
         Mining and quarrying labourers |          5        0.02       89.11
Constr,mainten labour: roads,dams,sim c |         79        0.28       89.39
        Building construction labourers |         96        0.34       89.73
                Manufacturing labourers |        246        0.87       90.60
Transport laborers and freight handlers |        210        0.75       91.35
                         Not applicable |      2,135        7.58       98.93
                                Refusal |         99        0.35       99.28
                             Don't know |         34        0.12       99.40
                              No answer |        169        0.60      100.00
----------------------------------------+-----------------------------------
                                  Total |     28,168      100.00

. 
. recode iscoco (66666 77777 88888 99999=-9), copyrest gen(isco_mainjob)
(2437 differences between iscoco and isco_mainjob)

. label variable isco_mainjob "Current occupation of respondent - isco88 4-digit"

. tab isco_mainjob

    Current |
 occupation |
         of |
 respondent |
   - isco88 |
    4-digit |      Freq.     Percent        Cum.
------------+-----------------------------------
         -9 |      2,437        8.65        8.65
        100 |         73        0.26        8.91
       1000 |         15        0.05        8.96
       1100 |          1        0.00        8.97
       1110 |         54        0.19        9.16
       1140 |          2        0.01        9.17
       1141 |          3        0.01        9.18
       1142 |          4        0.01        9.19
       1143 |          1        0.00        9.19
       1200 |          2        0.01        9.20
       1210 |        120        0.43        9.63
       1220 |         30        0.11        9.73
       1221 |          8        0.03        9.76
       1222 |         88        0.31       10.08
       1223 |         45        0.16       10.24
       1224 |         48        0.17       10.41
       1225 |         30        0.11       10.51
       1226 |         36        0.13       10.64
       1227 |         36        0.13       10.77
       1228 |         19        0.07       10.83
       1229 |        138        0.49       11.32
       1230 |         31        0.11       11.43
       1231 |        136        0.48       11.92
       1232 |         50        0.18       12.10
       1233 |        115        0.41       12.50
       1234 |         31        0.11       12.61
       1235 |         24        0.09       12.70
       1236 |         40        0.14       12.84
       1237 |         34        0.12       12.96
       1239 |        101        0.36       13.32
       1300 |          5        0.02       13.34
       1310 |         20        0.07       13.41
       1311 |         60        0.21       13.62
       1312 |         77        0.27       13.90
       1313 |         73        0.26       14.15
       1314 |        301        1.07       15.22
       1315 |        126        0.45       15.67
       1316 |         42        0.15       15.82
       1317 |         96        0.34       16.16
       1318 |         36        0.13       16.29
       1319 |        152        0.54       16.83
       2000 |          4        0.01       16.84
       2100 |          4        0.01       16.86
       2110 |          4        0.01       16.87
       2111 |         10        0.04       16.91
       2112 |          2        0.01       16.91
       2113 |         23        0.08       16.99
       2114 |          2        0.01       17.00
       2121 |          3        0.01       17.01
       2122 |          4        0.01       17.03
       2130 |         54        0.19       17.22
       2131 |        137        0.49       17.70
       2139 |         57        0.20       17.91
       2140 |         24        0.09       17.99
       2141 |         70        0.25       18.24
       2142 |         51        0.18       18.42
       2143 |         35        0.12       18.55
       2144 |         43        0.15       18.70
       2145 |         57        0.20       18.90
       2146 |         13        0.05       18.95
       2147 |          5        0.02       18.96
       2148 |         21        0.07       19.04
       2149 |        108        0.38       19.42
       2200 |          2        0.01       19.43
       2210 |          2        0.01       19.44
       2211 |         30        0.11       19.54
       2212 |          8        0.03       19.57
       2213 |         17        0.06       19.63
       2220 |          5        0.02       19.65
       2221 |        113        0.40       20.05
       2222 |         26        0.09       20.14
       2223 |         17        0.06       20.20
       2224 |         24        0.09       20.29
       2229 |         23        0.08       20.37
       2230 |        231        0.82       21.19
       2300 |         43        0.15       21.34
       2310 |        160        0.57       21.91
       2320 |        454        1.61       23.52
       2330 |         63        0.22       23.75
       2331 |        308        1.09       24.84
       2332 |         25        0.09       24.93
       2340 |         50        0.18       25.11
       2350 |         16        0.06       25.16
       2351 |         26        0.09       25.26
       2352 |          6        0.02       25.28
       2359 |         94        0.33       25.61
       2400 |          4        0.01       25.62
       2410 |          9        0.03       25.66
       2411 |        103        0.37       26.02
       2412 |         74        0.26       26.29
       2419 |        185        0.66       26.94
       2420 |          9        0.03       26.97
       2421 |         45        0.16       27.13
       2422 |          7        0.02       27.16
       2429 |         45        0.16       27.32
       2431 |         11        0.04       27.36
       2432 |         25        0.09       27.45
       2440 |          9        0.03       27.48
       2441 |         29        0.10       27.58
       2442 |          9        0.03       27.61
       2443 |          5        0.02       27.63
       2444 |         24        0.09       27.72
       2445 |         35        0.12       27.84
       2446 |         99        0.35       28.19
       2450 |          4        0.01       28.21
       2451 |         81        0.29       28.49
       2452 |         56        0.20       28.69
       2453 |         37        0.13       28.82
       2454 |          9        0.03       28.86
       2455 |         24        0.09       28.94
       2460 |         33        0.12       29.06
       2470 |         88        0.31       29.37
       3000 |          4        0.01       29.38
       3100 |         33        0.12       29.50
       3110 |         28        0.10       29.60
       3111 |         37        0.13       29.73
       3112 |         80        0.28       30.02
       3113 |         55        0.20       30.21
       3114 |         72        0.26       30.47
       3115 |         92        0.33       30.79
       3116 |         16        0.06       30.85
       3117 |         11        0.04       30.89
       3118 |         69        0.24       31.13
       3119 |        115        0.41       31.54
       3120 |         71        0.25       31.79
       3121 |         63        0.22       32.02
       3122 |         46        0.16       32.18
       3123 |          2        0.01       32.19
       3130 |          2        0.01       32.20
       3131 |         40        0.14       32.34
       3132 |         10        0.04       32.37
       3133 |         19        0.07       32.44
       3139 |          6        0.02       32.46
       3140 |          5        0.02       32.48
       3141 |         12        0.04       32.52
       3142 |         13        0.05       32.57
       3143 |          9        0.03       32.60
       3144 |          4        0.01       32.62
       3145 |          2        0.01       32.62
       3150 |          7        0.02       32.65
       3151 |          5        0.02       32.66
       3152 |         97        0.34       33.01
       3200 |          4        0.01       33.02
       3210 |          2        0.01       33.03
       3211 |         34        0.12       33.15
       3212 |          5        0.02       33.17
       3213 |          2        0.01       33.18
       3220 |         15        0.05       33.23
       3221 |         34        0.12       33.35
       3222 |          4        0.01       33.36
       3223 |         10        0.04       33.40
       3224 |         22        0.08       33.48
       3225 |         26        0.09       33.57
       3226 |         79        0.28       33.85
       3227 |          7        0.02       33.88
       3228 |         22        0.08       33.95
       3229 |         98        0.35       34.30
       3230 |         13        0.05       34.35
       3231 |        371        1.32       35.66
       3232 |         18        0.06       35.73
       3300 |         10        0.04       35.76
       3310 |        116        0.41       36.18
       3320 |        113        0.40       36.58
       3330 |         41        0.15       36.72
       3340 |        121        0.43       37.15
       3400 |         32        0.11       37.27
       3410 |         64        0.23       37.49
       3411 |         23        0.08       37.57
       3412 |         89        0.32       37.89
       3413 |         58        0.21       38.10
       3414 |         16        0.06       38.15
       3415 |        305        1.08       39.24
       3416 |         65        0.23       39.47
       3417 |         11        0.04       39.51
       3419 |        187        0.66       40.17
       3420 |          7        0.02       40.19
       3421 |         13        0.05       40.24
       3422 |          7        0.02       40.27
       3423 |         26        0.09       40.36
       3429 |         37        0.13       40.49
       3430 |        134        0.48       40.96
       3431 |        305        1.08       42.05
       3432 |         66        0.23       42.28
       3433 |        196        0.70       42.98
       3434 |         10        0.04       43.01
       3440 |         29        0.10       43.12
       3441 |          8        0.03       43.14
       3442 |         27        0.10       43.24
       3443 |         20        0.07       43.31
       3444 |          9        0.03       43.34
       3449 |         21        0.07       43.42
       3450 |         39        0.14       43.56
       3460 |        182        0.65       44.20
       3470 |         14        0.05       44.25
       3471 |         80        0.28       44.54
       3472 |          9        0.03       44.57
       3473 |         12        0.04       44.61
       3474 |          5        0.02       44.63
       3475 |         49        0.17       44.80
       3480 |         10        0.04       44.84
       4000 |        101        0.36       45.20
       4100 |         41        0.15       45.34
       4110 |        180        0.64       45.98
       4111 |         25        0.09       46.07
       4112 |          9        0.03       46.10
       4113 |         33        0.12       46.22
       4114 |          2        0.01       46.23
       4115 |        405        1.44       47.66
       4120 |         54        0.19       47.86
       4121 |        217        0.77       48.63
       4122 |        122        0.43       49.06
       4130 |         26        0.09       49.15
       4131 |        181        0.64       49.79
       4132 |         86        0.31       50.10
       4133 |        105        0.37       50.47
       4140 |          2        0.01       50.48
       4141 |         62        0.22       50.70
       4142 |        136        0.48       51.18
       4143 |          5        0.02       51.20
       4144 |         13        0.05       51.25
       4190 |        695        2.47       53.71
       4200 |         13        0.05       53.76
       4210 |         47        0.17       53.93
       4211 |        132        0.47       54.40
       4212 |         86        0.31       54.70
       4213 |          6        0.02       54.72
       4214 |          1        0.00       54.73
       4215 |          6        0.02       54.75
       4220 |         34        0.12       54.87
       4221 |         31        0.11       54.98
       4222 |        145        0.51       55.49
       4223 |        106        0.38       55.87
       5000 |          2        0.01       55.88
       5100 |          3        0.01       55.89
       5110 |          1        0.00       55.89
       5111 |         25        0.09       55.98
       5112 |         25        0.09       56.07
       5113 |         11        0.04       56.11
       5120 |         64        0.23       56.33
       5121 |         64        0.23       56.56
       5122 |        322        1.14       57.70
       5123 |        416        1.48       59.18
       5130 |         47        0.17       59.35
       5131 |        395        1.40       60.75
       5132 |        473        1.68       62.43
       5133 |        253        0.90       63.33
       5139 |        106        0.38       63.70
       5140 |          8        0.03       63.73
       5141 |        249        0.88       64.62
       5142 |          7        0.02       64.64
       5143 |          3        0.01       64.65
       5149 |         67        0.24       64.89
       5160 |         10        0.04       64.92
       5161 |         28        0.10       65.02
       5162 |         88        0.31       65.34
       5163 |         12        0.04       65.38
       5169 |         63        0.22       65.60
       5200 |         10        0.04       65.64
       5210 |          2        0.01       65.65
       5220 |      1,393        4.95       70.59
       6100 |          4        0.01       70.60
       6110 |         26        0.09       70.70
       6111 |         77        0.27       70.97
       6112 |        147        0.52       71.49
       6120 |          8        0.03       71.52
       6121 |        133        0.47       71.99
       6122 |          8        0.03       72.02
       6129 |         13        0.05       72.07
       6130 |        310        1.10       73.17
       6140 |         16        0.06       73.22
       6141 |         21        0.07       73.30
       6150 |          9        0.03       73.33
       6151 |          1        0.00       73.33
       6152 |         13        0.05       73.38
       6153 |          6        0.02       73.40
       6154 |          4        0.01       73.42
       7000 |         12        0.04       73.46
       7100 |          2        0.01       73.47
       7111 |         18        0.06       73.53
       7112 |          3        0.01       73.54
       7113 |         11        0.04       73.58
       7120 |         25        0.09       73.67
       7121 |         72        0.26       73.92
       7122 |        227        0.81       74.73
       7123 |         39        0.14       74.87
       7124 |        233        0.83       75.70
       7129 |         60        0.21       75.91
       7130 |          3        0.01       75.92
       7131 |         23        0.08       76.00
       7132 |         24        0.09       76.09
       7133 |         20        0.07       76.16
       7134 |         21        0.07       76.23
       7135 |         12        0.04       76.27
       7136 |        115        0.41       76.68
       7137 |        105        0.37       77.06
       7139 |         16        0.06       77.11
       7140 |          7        0.02       77.14
       7141 |        130        0.46       77.60
       7143 |         11        0.04       77.64
       7200 |         10        0.04       77.67
       7210 |         21        0.07       77.75
       7211 |         15        0.05       77.80
       7212 |         71        0.25       78.05
       7213 |         46        0.16       78.22
       7214 |         46        0.16       78.38
       7215 |          5        0.02       78.40
       7216 |          2        0.01       78.40
       7220 |          1        0.00       78.41
       7221 |         30        0.11       78.51
       7222 |         59        0.21       78.72
       7223 |         47        0.17       78.89
       7224 |         13        0.05       78.94
       7230 |         60        0.21       79.15
       7231 |        189        0.67       79.82
       7232 |         14        0.05       79.87
       7233 |        113        0.40       80.27
       7240 |         13        0.05       80.32
       7241 |        116        0.41       80.73
       7242 |         37        0.13       80.86
       7244 |         17        0.06       80.92
       7245 |         21        0.07       81.00
       7300 |          9        0.03       81.03
       7310 |          2        0.01       81.04
       7311 |         23        0.08       81.12
       7312 |          2        0.01       81.12
       7313 |         16        0.06       81.18
       7321 |          8        0.03       81.21
       7322 |          9        0.03       81.24
       7324 |          6        0.02       81.26
       7330 |          4        0.01       81.28
       7331 |         14        0.05       81.33
       7332 |          9        0.03       81.36
       7340 |          7        0.02       81.38
       7341 |         30        0.11       81.49
       7342 |          3        0.01       81.50
       7343 |          9        0.03       81.53
       7344 |         10        0.04       81.57
       7345 |         14        0.05       81.62
       7346 |          6        0.02       81.64
       7400 |          8        0.03       81.67
       7410 |          2        0.01       81.67
       7411 |         81        0.29       81.96
       7412 |         79        0.28       82.24
       7413 |          6        0.02       82.26
       7414 |          9        0.03       82.30
       7415 |          2        0.01       82.30
       7416 |          4        0.01       82.32
       7420 |          2        0.01       82.32
       7421 |          9        0.03       82.36
       7422 |         85        0.30       82.66
       7423 |         11        0.04       82.70
       7424 |          1        0.00       82.70
       7430 |          8        0.03       82.73
       7431 |          5        0.02       82.75
       7432 |         14        0.05       82.80
       7433 |        125        0.44       83.24
       7434 |          6        0.02       83.26
       7435 |         11        0.04       83.30
       7436 |        109        0.39       83.69
       7437 |         15        0.05       83.74
       7441 |          3        0.01       83.75
       7442 |         40        0.14       83.89
       8000 |         12        0.04       83.94
       8100 |          9        0.03       83.97
       8110 |          6        0.02       83.99
       8111 |         10        0.04       84.02
       8112 |          4        0.01       84.04
       8120 |          4        0.01       84.05
       8121 |         15        0.05       84.11
       8122 |         11        0.04       84.15
       8123 |          5        0.02       84.16
       8124 |          3        0.01       84.17
       8130 |          1        0.00       84.18
       8131 |         14        0.05       84.23
       8139 |          8        0.03       84.26
       8140 |          6        0.02       84.28
       8141 |         20        0.07       84.35
       8142 |          6        0.02       84.37
       8143 |         12        0.04       84.41
       8150 |         17        0.06       84.47
       8153 |          1        0.00       84.48
       8155 |          1        0.00       84.48
       8159 |          6        0.02       84.50
       8160 |          3        0.01       84.51
       8161 |         10        0.04       84.55
       8162 |          6        0.02       84.57
       8163 |         10        0.04       84.60
       8170 |         14        0.05       84.65
       8200 |         14        0.05       84.70
       8210 |          6        0.02       84.72
       8211 |         76        0.27       84.99
       8212 |         11        0.04       85.03
       8220 |          8        0.03       85.06
       8221 |         12        0.04       85.10
       8222 |          5        0.02       85.12
       8223 |         16        0.06       85.18
       8224 |          2        0.01       85.19
       8229 |          4        0.01       85.20
       8230 |          2        0.01       85.21
       8231 |         10        0.04       85.24
       8232 |         32        0.11       85.36
       8240 |         13        0.05       85.40
       8250 |          5        0.02       85.42
       8251 |         40        0.14       85.56
       8252 |          4        0.01       85.58
       8253 |         18        0.06       85.64
       8260 |         16        0.06       85.70
       8261 |         25        0.09       85.79
       8262 |         22        0.08       85.86
       8263 |         91        0.32       86.19
       8264 |         28        0.10       86.29
       8265 |          2        0.01       86.29
       8266 |         11        0.04       86.33
       8269 |         22        0.08       86.41
       8270 |         20        0.07       86.48
       8271 |         34        0.12       86.60
       8272 |          7        0.02       86.63
       8273 |          3        0.01       86.64
       8274 |         15        0.05       86.69
       8275 |          6        0.02       86.71
       8276 |          2        0.01       86.72
       8277 |          1        0.00       86.72
       8278 |         11        0.04       86.76
       8279 |          3        0.01       86.77
       8280 |         20        0.07       86.84
       8281 |         36        0.13       86.97
       8282 |         38        0.13       87.11
       8283 |         33        0.12       87.22
       8284 |         22        0.08       87.30
       8285 |          9        0.03       87.33
       8286 |          4        0.01       87.35
       8287 |          7        0.02       87.37
       8290 |        109        0.39       87.76
       8300 |          2        0.01       87.77
       8311 |         25        0.09       87.86
       8312 |         13        0.05       87.90
       8320 |         27        0.10       88.00
       8321 |          1        0.00       88.00
       8322 |        142        0.50       88.50
       8323 |         74        0.26       88.77
       8324 |        265        0.94       89.71
       8330 |          6        0.02       89.73
       8331 |         16        0.06       89.79
       8332 |         50        0.18       89.96
       8333 |         37        0.13       90.10
       8334 |         54        0.19       90.29
       8340 |         22        0.08       90.36
       9000 |         22        0.08       90.44
       9100 |         31        0.11       90.55
       9110 |          5        0.02       90.57
       9111 |         23        0.08       90.65
       9113 |         29        0.10       90.76
       9120 |          3        0.01       90.77
       9130 |        144        0.51       91.28
       9131 |        373        1.32       92.60
       9132 |        776        2.75       95.36
       9133 |         38        0.13       95.49
       9140 |          3        0.01       95.50
       9141 |        124        0.44       95.94
       9142 |         11        0.04       95.98
       9150 |          7        0.02       96.01
       9151 |        101        0.36       96.36
       9152 |         96        0.34       96.71
       9153 |          7        0.02       96.73
       9160 |          5        0.02       96.75
       9161 |         17        0.06       96.81
       9162 |         34        0.12       96.93
       9200 |          1        0.00       96.93
       9210 |         58        0.21       97.14
       9211 |        150        0.53       97.67
       9212 |          9        0.03       97.70
       9213 |          1        0.00       97.71
       9300 |          7        0.02       97.73
       9310 |          3        0.01       97.74
       9311 |          5        0.02       97.76
       9312 |         79        0.28       98.04
       9313 |         96        0.34       98.38
       9320 |        246        0.87       99.25
       9330 |        210        0.75      100.00
------------+-----------------------------------
      Total |     28,168      100.00

. 
. **** Recode employment status for respondents
. 
. tab emplrel

            Employment relation |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     22,419       79.59       79.59
                  Self-employed |      2,978       10.57       90.16
Working for own family business |        429        1.52       91.69
                 Not applicable |      2,135        7.58       99.27
                        Refusal |         63        0.22       99.49
                     Don't know |         72        0.26       99.74
                      No answer |         72        0.26      100.00
--------------------------------+-----------------------------------
                          Total |     28,168      100.00

. 
. recode emplrel (6 7 8 9=9), copyrest gen(emplrel_r)
(2270 differences between emplrel and emplrel_r)

. replace emplrel_r=-9 if cntry=="FR" & (essround==1 | essround==2) // Replace this command line with [SYNTAX A] or [SYNT
> AX C]
(0 real changes made)

. replace emplrel_r=-9 if cntry=="HU" & essround==2 // Replace this command line with [SYNTAX E]
(0 real changes made)

. label define emplrel_r ///
> 1 "Employee" ///
> 2 "Self-employed" ///
> 3 "Working for own family business" ///
> 9 "Missing"

. label value emplrel_r emplrel_r

. tab emplrel_r

  RECODE of emplrel (Employment |
                      relation) |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     22,419       79.59       79.59
                  Self-employed |      2,978       10.57       90.16
Working for own family business |        429        1.52       91.69
                        Missing |      2,342        8.31      100.00
--------------------------------+-----------------------------------
                          Total |     28,168      100.00

. 
. tab emplno

     Number of |
     employees |
    respondent |
       has/had |      Freq.     Percent        Cum.
---------------+-----------------------------------
             0 |      1,739        6.17        6.17
             1 |        325        1.15        7.33
             2 |        216        0.77        8.09
             3 |        140        0.50        8.59
             4 |         85        0.30        8.89
             5 |         91        0.32        9.22
             6 |         50        0.18        9.39
             7 |         37        0.13        9.52
             8 |         35        0.12        9.65
             9 |          9        0.03        9.68
            10 |         41        0.15        9.83
            11 |          9        0.03        9.86
            12 |         14        0.05        9.91
            13 |          4        0.01        9.92
            14 |         10        0.04        9.96
            15 |         15        0.05       10.01
            16 |          8        0.03       10.04
            17 |          2        0.01       10.05
            18 |          1        0.00       10.05
            19 |          1        0.00       10.05
            20 |         18        0.06       10.12
            21 |          1        0.00       10.12
            23 |          2        0.01       10.13
            25 |         13        0.05       10.17
            26 |          4        0.01       10.19
            28 |          3        0.01       10.20
            30 |          5        0.02       10.22
            33 |          1        0.00       10.22
            34 |          2        0.01       10.23
            35 |          6        0.02       10.25
            40 |          2        0.01       10.26
            42 |          1        0.00       10.26
            43 |          1        0.00       10.26
            45 |          1        0.00       10.27
            50 |          3        0.01       10.28
            54 |          1        0.00       10.28
            60 |          5        0.02       10.30
            80 |          2        0.01       10.31
            86 |          1        0.00       10.31
            90 |          1        0.00       10.31
           100 |          2        0.01       10.32
           105 |          1        0.00       10.32
           120 |          1        0.00       10.33
           200 |          1        0.00       10.33
           230 |          1        0.00       10.33
           250 |          1        0.00       10.34
           760 |          1        0.00       10.34
          1000 |          1        0.00       10.35
          1200 |          1        0.00       10.35
Not applicable |     25,118       89.17       99.52
       Refusal |         20        0.07       99.59
    Don't know |         27        0.10       99.69
     No answer |         88        0.31      100.00
---------------+-----------------------------------
         Total |     28,168      100.00

. 
. recode emplno (0 66666 77777 88888 99999=0)(1/9=1)(10/10000=2), gen(emplno_r)
(26104 differences between emplno and emplno_r)

. label define emplno_r ///
> 0 "0 employees" ///
> 1 "1-9 employees" ///
> 2 "10+ employees"

. label value emplno_r emplno_r

. tab emplno_r

    RECODE of |
       emplno |
   (Number of |
    employees |
   respondent |
     has/had) |      Freq.     Percent        Cum.
--------------+-----------------------------------
  0 employees |     26,992       95.83       95.83
1-9 employees |        988        3.51       99.33
10+ employees |        188        0.67      100.00
--------------+-----------------------------------
        Total |     28,168      100.00

. 
. 
. gen selfem_mainjob=.
(28168 missing values generated)

. replace selfem_mainjob=1 if emplrel_r==1 | emplrel_r==9
(24761 real changes made)

. replace selfem_mainjob=2 if emplrel_r==2 & emplno_r==0
(1802 real changes made)

. replace selfem_mainjob=2 if emplrel_r==3
(429 real changes made)

. replace selfem_mainjob=3 if emplrel_r==2 & emplno_r==1
(988 real changes made)

. replace selfem_mainjob=4 if emplrel_r==2 & emplno_r==2
(188 real changes made)

. label variable selfem_mainjob "Employment status for respondants"

. label define selfem_mainjob ///
> 1 "Not self-employed" ///
> 2 "Self-empl without employees" ///
> 3 "Self-empl with 1-9 employees" ///
> 4 "Self-empl with 10 or more"

. label value selfem_mainjob selfem_mainjob

. tab selfem_mainjob

       Employment status for |
                 respondants |      Freq.     Percent        Cum.
-----------------------------+-----------------------------------
           Not self-employed |     24,761       87.90       87.90
 Self-empl without employees |      2,231        7.92       95.83
Self-empl with 1-9 employees |        988        3.51       99.33
   Self-empl with 10 or more |        188        0.67      100.00
-----------------------------+-----------------------------------
                       Total |     28,168      100.00

. 
. 
. 
. * Create Oesch class schema for respondents
. 
. 
. gen class16_r = -9

. 
. * Large employers (1)
. 
. replace class16_r=1 if selfem_mainjob==4
(188 real changes made)

. 
. 
. * Self-employed professionals (2)
. 
. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2000 & isco_mainjob <= 2229) 
(149 real changes made)

. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2300 & isco_mainjob <= 2470)
(266 real changes made)

. 
. * Small business owners with employees (3)
. 
. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(337 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(517 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob == 2230)
(1 real change made)

. 
. * Small business owners without employees (4)
. 
. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(287 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(1630 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob == 2230)
(3 real changes made)

. 
. * Technical experts (5)
. 
. replace class16_r=5 if (selfem_mainjob==1) & (isco_mainjob >= 2100 & isco_mainjob <= 2213)
(692 real changes made)

. 
. * Technicians (6)
. 
. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3100 & isco_mainjob <= 3152)
(940 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3210 & isco_mainjob <= 3213)
(42 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob == 3434)
(10 real changes made)

. 
. * Skilled manual (7)
. 
. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 6000 & isco_mainjob <= 7442)
(2812 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8310 & isco_mainjob <= 8312)
(38 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8324 & isco_mainjob <= 8330)
(242 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8332 & isco_mainjob <= 8340)
(152 real changes made)

. 
. * Low-skilled manual (8)
. 
. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8000 & isco_mainjob <= 8300)
(1061 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8320 & isco_mainjob <= 8321)
(25 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob == 8331)
(13 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 9153 & isco_mainjob <= 9333)
(826 real changes made)

. 
. * Higher-grade managers and administrators (9)
. 
. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 1000 & isco_mainjob <= 1239)
(1111 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 2400 & isco_mainjob <= 2429)
(385 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2441)
(19 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2470)
(88 real changes made)

. 
. * Lower-grade managers and administrators (10)
. 
. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 1300 & isco_mainjob <= 1319)
(383 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3400 & isco_mainjob <= 3433)
(1447 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3440 & isco_mainjob <= 3450)
(149 real changes made)

. 
. * Skilled clerks (11)
. 
. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4000 & isco_mainjob <= 4112)
(338 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4114 & isco_mainjob <= 4210)
(2095 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4212 & isco_mainjob <= 4222)
(303 real changes made)

. 
. * Unskilled clerks (12)
. 
. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4113)
(31 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4211)
(128 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4223)
(104 real changes made)

. 
. * Socio-cultural professionals (13)
. 
. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2220 &  isco_mainjob <= 2229)
(141 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2300 &  isco_mainjob <= 2320)
(641 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2340 &  isco_mainjob <= 2359)
(161 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2430 &  isco_mainjob <= 2440)
(44 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2442 &  isco_mainjob <= 2443)
(13 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2445)
(26 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2451)
(63 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2460)
(28 real changes made)

. 
. * Socio-cultural semi-professionals (14)
. 
. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2230)
(227 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2330 & isco_mainjob <= 2332)
(391 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2444)
(13 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2446 & isco_mainjob <= 2450)
(98 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2452 & isco_mainjob <= 2455)
(56 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3200)
(4 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3220 & isco_mainjob <= 3224)
(75 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3226)
(47 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3229 & isco_mainjob <= 3340)
(836 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3460 & isco_mainjob <= 3472)
(240 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3480)
(10 real changes made)

. 
. * Skilled service (15)
. 
. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 3225)
(26 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3227 & isco_mainjob <= 3228)
(28 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3473 & isco_mainjob <= 3475)
(49 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5000 & isco_mainjob <= 5113)
(65 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5122)
(301 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5131 & isco_mainjob <= 5132)
(837 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5140 & isco_mainjob <= 5141)
(157 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5143)
(3 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5160 & isco_mainjob <= 5220)
(1440 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 8323)
(72 real changes made)

. 
. * Low-skilled service (16)
. 
. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5120 & isco_mainjob <= 5121)
(109 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5123 & isco_mainjob <= 5130)
(417 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5133 & isco_mainjob <= 5139)
(349 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5142)
(7 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5149)
(56 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5230)
(0 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 8322)
(103 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 9100 &  isco_mainjob <= 9152)
(1685 real changes made)

. 
. mvdecode class16_r, mv(-9)
   class16_r: 2538 missing values generated

. label variable class16_r "Respondent's Oesch class position - 16 classes"

. label define class16_r ///
> 1 "Large employers" ///
> 2 "Self-employed professionals" ///
> 3 "Small business owners with employees" ///
> 4 "Small business owners without employees" ///
> 5 "Technical experts" ///
> 6 "Technicians" ///
> 7 "Skilled manual" ///
> 8 "Low-skilled manual" ///
> 9 "Higher-grade managers and administrators" ///
> 10 "Lower-grade managers and administrators" ///
> 11 "Skilled clerks" ///
> 12 "Unskilled clerks" ///
> 13 "Socio-cultural professionals" ///
> 14 "Socio-cultural semi-professionals" ///
> 15 "Skilled service" ///
> 16 "Low-skilled service"

. label value class16_r class16_r

. tab class16_r

 Respondent's Oesch class position - 16 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                        Large employers |        188        0.73        0.73
            Self-employed professionals |        415        1.62        2.35
   Small business owners with employees |        855        3.34        5.69
Small business owners without employees |      1,920        7.49       13.18
                      Technical experts |        692        2.70       15.88
                            Technicians |        992        3.87       19.75
                         Skilled manual |      3,244       12.66       32.41
                     Low-skilled manual |      1,925        7.51       39.92
Higher-grade managers and administrator |      1,603        6.25       46.17
Lower-grade managers and administrators |      1,979        7.72       53.89
                         Skilled clerks |      2,736       10.67       64.57
                       Unskilled clerks |        263        1.03       65.60
           Socio-cultural professionals |      1,117        4.36       69.95
      Socio-cultural semi-professionals |      1,997        7.79       77.74
                        Skilled service |      2,978       11.62       89.36
                    Low-skilled service |      2,726       10.64      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,630      100.00

. 
. recode class16_r (1 2=1)(3 4=2)(5 6=3)(7 8=4)(9 10=5)(11 12=6)(13 14=7)(15 16=8), gen(class8_r)
(25442 differences between class16_r and class8_r)

. label variable class8_r "Respondent's Oesch class position - 8 classes"

. label define class8_r ///
> 1 "Self-employed professionals and large employers" ///
> 2 "Small business owners" ///
> 3 "Technical (semi-)professionals" ///
> 4 "Production workers" ///
> 5 "(Associate) managers" ///
> 6 "Clerks" ///
> 7 "Socio-cultural (semi-)professionals" ///
> 8 "Service workers"

. label value class8_r class8_r

. tab class8_r

  Respondent's Oesch class position - 8 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Self-employed professionals and large e |        603        2.35        2.35
                  Small business owners |      2,775       10.83       13.18
         Technical (semi-)professionals |      1,684        6.57       19.75
                     Production workers |      5,169       20.17       39.92
                   (Associate) managers |      3,582       13.98       53.89
                                 Clerks |      2,999       11.70       65.60
    Socio-cultural (semi-)professionals |      3,114       12.15       77.74
                        Service workers |      5,704       22.26      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,630      100.00

. 
. 
. *** Aggregated sector variable
. * Creation of variable
. gen sector=.
(28168 missing values generated)

. replace sector=1 if nace==1 | nace==2 | nace==5
(1082 real changes made)

. replace sector=2 if nace==10 | nace==11 | nace==12 | nace==13 | nace==14
(123 real changes made)

. replace sector=3 if nace==15 | nace==16 | nace==17 | nace==18 | nace==19 | nace==20 ///
>          | nace==21 | nace==22 | nace==23 | nace==24 | nace==25 | nace==26 | nace==27 ///
>          | nace==28 | nace==29 | nace==30 | nace==31 | nace==32 | nace==33 | nace==34 ///
>          | nace==35 | nace==36 | nace==37
(4329 real changes made)

. replace sector=4 if nace==40 | nace==41
(222 real changes made)

. replace sector=5 if nace==45
(1792 real changes made)

. replace sector=6 if nace==50 | nace==51 | nace==52 | nace==55
(4369 real changes made)

. replace sector=7 if nace==60 | nace==61 | nace==62 | nace==63 | nace==64
(1468 real changes made)

. replace sector=8 if nace==65 | nace==66 | nace==67 | nace==70 | nace==71 | nace==72 ///
>          | nace==73 | nace==74
(3172 real changes made)

. replace sector=9 if nace==75 | nace==80 | nace==85 | nace==90 | nace==91 | nace==92 ///
>          | nace==93 | nace==95 | nace==99
(8752 real changes made)

. lab var sector "Aggregated sector variable"

. * Definition of value label
. lab define sector 1 "Agriculture, hunting, forestry and fishing" ///
>         2 "Mining and quarrying" ///
>         3 "Manufacturing" ///
>         4 "Electricity, gas and water" ///
>         5 "Construction" ///
>         6 "Wholesale and retail trade and restaurants and hotels" ///
>         7 "Transport, storage and communications" ///
>         8 "Financing, insurance, real estate and busines services" ///
>         9 "Community, social and personal services"

. lab values sector sector

. 
. *** Gender
. * Creation of variable
. gen gender=gndr

. lab var gender "Gender"

. * Recoding of variable and definition of value label
. recode gender (1=0) (2=1)
(gender: 28100 changes made)

. lab define gender 0 "male" 1 "female"

. lab values gender gender

. 
. 
. *** Creation of modernization loser variable 1 : routine service (class 16)
. * Creation of variable
. gen mod_losers1=.
(28168 missing values generated)

. replace mod_losers1 =1 if class16_r==16
(2726 real changes made)

. replace mod_losers1 =0 if class16_r!=16
(25442 real changes made)

. replace mod_losers1=. if class16_r==.
(2538 real changes made, 2538 to missing)

. 
. lab var mod_losers1 "Modernization losers 1; routine service oesch "

. * Definition of value label
. lab define mod_losers1 1 "mod loser (routine service)" 0 "not loser"

. lab values mod_losers1 mod_losers1

. 
. 
. *** Creation of modernization loser variable 4 : routine and skilled manual (classes 7,8)
. * Creation of variable
. gen mod_losers4=0

. replace mod_losers4 =1 if class16_r==7
(3244 real changes made)

. replace mod_losers4 =1 if class16_r==8
(1925 real changes made)

. replace mod_losers4 =. if class16_r==.
(2538 real changes made, 2538 to missing)

. 
. lab var mod_losers4 "Modernization losers 4; routine and skilled manual oesch "

. * Definition of value label
. lab define mod_losers4 1 "mod loser (routine and skilled manual)" 0 "not loser"

. lab values mod_losers4 mod_losers4

. 
. 
. *** Creation of modernization winner variable 1 : socio-cult prof
. * Creation of variable
. gen mod_winners1=0

. replace mod_winners1 =1 if class16_r==13
(1117 real changes made)

. replace mod_winners1 =1 if class16_r==14
(1997 real changes made)

. replace mod_winners1 =. if class16_r==.
(2538 real changes made, 2538 to missing)

. 
. lab var mod_winners1 "Modernization winners 1; SCP oesch "

. * Definition of value label
. lab define mod_winners1 1 "mod winners (SCP oesch)" 0 "not winner"

. lab values mod_winners1 mod_winners1

. 
. 
. 
. 
. ************************************
. ************************************
. *       1.3 lm status: unempl, temp, involunt parttime
. 
. 
. *** unemployed in last 5 years
. * Creation of variable
. gen unemployed5y=uemp5yr==1

. lab var unemployed5y "Unemployed in last 5 years"

. * Definition of value label
. lab define unemployed5y 1 "unemployed in last 5 years" 0 "other"

. lab values unemployed5y unemployed5y

. 
. 
. *** temporary employed
. * Creation of variable
. gen temp=wrkctr==2

. lab var temp "temporary employed (limited contract)"

. * Definition of value label
. lab define temp 1 "limited contract" 0 "other"

. lab values temp temp

. 
. 
. *** part-time
. * Creation of variable
. gen parttime=wkhct<30

. lab var parttime "parttime employed (<30h)"

. * Definition of value label
. lab define parttime 1 "parttime" 0 "other"

. lab values parttime parttime

. 
. 
. ************************************
. ************************************
. *       1.4 other variables : country dummies, polint, age, age2, income?, gender, sector?
. 
. 
. *** Age
. drop age

. * Creation of variable
. gen age=2006-yrbrn

. lab var age "Age in years"

. gen age2=age^2

. lab var age2 "Age in years (squared)"

. 
. 
. *** Political interest
. * Creation of variable
. gen polint=polintr

. recode polint (1=4) (2=3) (3=2) (4=1)
(polint: 28114 changes made)

. lab var polint "Interest in politics"

. * Definition of value label
. lab define polint 4 "Very interested" 3 "Quite interested" 2 "Hardly interested" ///
>         1 "Not at all interested"

. lab values polint polint

. 
. *** Income
. * Creation of variable
. gen inc=hinctnt

. sum hinctnt if cntry=="AT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2405
25%            6              1       Sum of Wgt.        2405

50%            8                      Mean           34.41954
                        Largest       Std. Dev.      35.79681
75%           77             88
90%           77             88       Variance       1281.412
95%           88             88       Skewness         .50667
99%           88             88       Kurtosis       1.298285

. replace inc=hinctnt-r(p50) if cntry=="AT"
(2405 real changes made)

. sum hinctnt if cntry=="BE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            5              1       Obs                1798
25%            6              1       Sum of Wgt.        1798

50%            8                      Mean           17.17241
                        Largest       Std. Dev.       26.0999
75%            9             88
90%           77             88       Variance       681.2045
95%           88             88       Skewness       2.163622
99%           88             88       Kurtosis       5.774276

. replace inc=hinctnt-r(p50) if cntry=="BE"
(1798 real changes made)

. sum hinctnt if cntry=="CH", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            5              1
10%            6              1       Obs                1804
25%            8              2       Sum of Wgt.        1804

50%            9                      Mean           23.31042
                        Largest       Std. Dev.      29.33079
75%           11             88
90%           77             99       Variance       860.2952
95%           88             99       Skewness       1.496181
99%           88             99       Kurtosis         3.3099

. replace inc=hinctnt-r(p50) if cntry=="CH"
(1804 real changes made)

. sum hinctnt if cntry=="CZ", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="CZ"
(0 real changes made)

. sum hinctnt if cntry=="DE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2916
25%            6              1       Sum of Wgt.        2916

50%            8                      Mean            25.2644
                        Largest       Std. Dev.      32.07653
75%           77             88
90%           77             88       Variance       1028.904
95%           88             88       Skewness       1.136217
99%           88             88       Kurtosis       2.340589

. replace inc=hinctnt-r(p50) if cntry=="DE"
(2916 real changes made)

. sum hinctnt if cntry=="DK", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            4              1
10%            5              1       Obs                1505
25%            7              1       Sum of Wgt.        1505

50%            9                      Mean           17.47442
                        Largest       Std. Dev.      26.50182
75%           10             99
90%           77             99       Variance       702.3466
95%           88             99       Skewness       2.388582
99%           99             99       Kurtosis       6.869119

. replace inc=hinctnt-r(p50) if cntry=="DK"
(1505 real changes made)

. sum hinctnt if cntry=="EE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="EE"
(0 real changes made)

. sum hinctnt if cntry=="ES", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            4              1       Obs                1876
25%            5              1       Sum of Wgt.        1876

50%            8                      Mean           35.81716
                        Largest       Std. Dev.      36.68584
75%           77             88
90%           88             88       Variance       1345.851
95%           88             88       Skewness       .4302998
99%           88             88       Kurtosis       1.228757

. replace inc=hinctnt-r(p50) if cntry=="ES"
(1876 real changes made)

. sum hinctnt if cntry=="FI", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              2
 5%            4              2
10%            4              2       Obs                1896
25%            5              2       Sum of Wgt.        1896

50%            7                      Mean           14.21414
                        Largest       Std. Dev.      22.92278
75%            9             88
90%           11             88       Variance       525.4539
95%           88             88       Skewness       2.823656
99%           88             88       Kurtosis       9.088686

. replace inc=hinctnt-r(p50) if cntry=="FI"
(1896 real changes made)

. sum hinctnt if cntry=="FR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            3              1
10%            4              1       Obs                1986
25%            5              1       Sum of Wgt.        1986

50%            7                      Mean           15.88771
                        Largest       Std. Dev.      24.71753
75%            9             88
90%           77             88       Variance       610.9562
95%           77             88       Skewness        2.28071
99%           88             88       Kurtosis       6.318107

. replace inc=hinctnt-r(p50) if cntry=="FR"
(1986 real changes made)

. sum hinctnt if cntry=="GB", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                2394
25%            6              1       Sum of Wgt.        2394

50%            9                      Mean           24.24561
                        Largest       Std. Dev.      31.82111
75%           11             88
90%           88             88       Variance       1012.583
95%           88             88       Skewness        1.33029
99%           88             88       Kurtosis       2.834361

. replace inc=hinctnt-r(p50) if cntry=="GB"
(2394 real changes made)

. sum hinctnt if cntry=="GR", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="GR"
(0 real changes made)

. sum hinctnt if cntry=="HU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="HU"
(0 real changes made)

. sum hinctnt if cntry=="IE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1800
25%            6              1       Sum of Wgt.        1800

50%            9                      Mean           27.90167
                        Largest       Std. Dev.      34.89683
75%           77             99
90%           88             99       Variance       1217.789
95%           88             99       Skewness       1.124869
99%           99             99       Kurtosis       2.355308

. replace inc=hinctnt-r(p50) if cntry=="IE"
(1800 real changes made)

. sum hinctnt if cntry=="IL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IL"
(0 real changes made)

. sum hinctnt if cntry=="IS", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IS"
(0 real changes made)

. sum hinctnt if cntry=="IT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IT"
(0 real changes made)

. sum hinctnt if cntry=="LU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="LU"
(0 real changes made)

. sum hinctnt if cntry=="NL", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            4              1       Obs                1889
25%            5              1       Sum of Wgt.        1889

50%            7                      Mean           15.72684
                        Largest       Std. Dev.      24.60552
75%            9             88
90%           77             88       Variance       605.4317
95%           88             88       Skewness        2.38544
99%           88             88       Kurtosis       6.811143

. replace inc=hinctnt-r(p50) if cntry=="NL"
(1889 real changes made)

. sum hinctnt if cntry=="NO", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            4              1
10%            5              1       Obs                1750
25%            8              1       Sum of Wgt.        1750

50%            9                      Mean           11.53143
                        Largest       Std. Dev.      14.90998
75%           10             88
90%           11             88       Variance       222.3075
95%           12             88       Skewness       4.770997
99%           88             88       Kurtosis       24.42683

. replace inc=hinctnt-r(p50) if cntry=="NO"
(1750 real changes made)

. sum hinctnt if cntry=="PL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PL"
(0 real changes made)

. sum hinctnt if cntry=="PT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2222
25%            4              1       Sum of Wgt.        2222

50%            8                      Mean           39.45545
                        Largest       Std. Dev.      38.39171
75%           77             88
90%           88             88       Variance       1473.923
95%           88             88       Skewness       .2048664
99%           88             88       Kurtosis       1.085464

. replace inc=hinctnt-r(p50) if cntry=="PT"
(2222 real changes made)

. sum hinctnt if cntry=="SE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            3              1
 5%            4              1
10%            5              1       Obs                1927
25%            6              1       Sum of Wgt.        1927

50%            8                      Mean            13.3944
                        Largest       Std. Dev.      21.11131
75%            9             88
90%           10             88       Variance       445.6876
95%           88             88       Skewness        3.17256
99%           88             99       Kurtosis        11.2111

. replace inc=hinctnt-r(p50) if cntry=="SE"
(1927 real changes made)

. sum hinctnt if cntry=="SI", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SI"
(0 real changes made)

. sum hinctnt if cntry=="SK", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SK"
(0 real changes made)

. lab var inc "Income, difference between respondet class and median class per country"

. 
. 
. ************************************
. ************************************
. *       1.5 Party choice and participation (adapted from Rommel&Walter)
. 
. *** Partisan preference, last election (not classified parties are missings)
. * Creation of variable
. gen party_vote=.
(28168 missing values generated)

. label var party_vote "Partisan preference, last election"

. * Austria
. replace   party_vote=3         if        prtvtaat==1
(480 real changes made)

. replace   party_vote=5         if        prtvtaat==2
(518 real changes made)

. replace   party_vote=7         if        prtvtaat==3
(93 real changes made)

. replace   party_vote=7         if        prtvtaat==4
(25 real changes made)

. replace   party_vote=1         if        prtvtaat==5
(186 real changes made)

. replace   party_vote=4         if        prtvtaat==6
(1 real change made)

. replace   party_vote=2         if        prtvtaat==7
(8 real changes made)

. replace   party_vote=0         if        prtvtaat==8
(11 real changes made)

. * Belgium
. replace   party_vote=1         if        prtvtabe==1
(55 real changes made)

. replace   party_vote=5         if        prtvtabe==2
(261 real changes made)

. replace   party_vote=5         if        prtvtabe==3
(26 real changes made)

. replace   party_vote=3         if        prtvtabe==5
(150 real changes made)

. replace   party_vote=.         if        prtvtabe==6
(0 real changes made)

. replace   party_vote=7         if        prtvtabe==7
(108 real changes made)

. replace   party_vote=4         if        prtvtabe==8
(188 real changes made)

. replace   party_vote=5         if        prtvtabe==9
(62 real changes made)

. replace   party_vote=1         if        prtvtabe==10
(49 real changes made)

. replace   party_vote=7         if        prtvtabe==11
(10 real changes made)

. replace   party_vote=4         if        prtvtabe==12
(134 real changes made)

. replace   party_vote=3         if        prtvtabe==13
(167 real changes made)

. replace   party_vote=0         if        prtvtabe==14
(9 real changes made)

. replace   party_vote=.         if        prtvtabe==15
(0 real changes made)

. replace   party_vote=.         if        prtvtabe==16
(0 real changes made)

. * Switzerland
. replace   party_vote=4         if        prtvtach==1
(108 real changes made)

. replace   party_vote=5         if        prtvtach==2
(105 real changes made)

. replace   party_vote=3         if        prtvtach==3
(206 real changes made)

. replace   party_vote=7         if        prtvtach==4
(181 real changes made)

. replace   party_vote=4         if        prtvtach==5
(15 real changes made)

. replace   party_vote=5         if        prtvtach==7
(18 real changes made)

. replace   party_vote=.         if        prtvtach==8
(0 real changes made)

. replace   party_vote=2         if        prtvtach==9
(5 real changes made)

. replace   party_vote=1         if        prtvtach==10
(98 real changes made)

. replace   party_vote=7         if        prtvtach==11
(1 real change made)

. replace   party_vote=7         if        prtvtach==12
(9 real changes made)

. replace   party_vote=7         if        prtvtach==13
(1 real change made)

. replace   party_vote=.         if        prtvtach==14
(0 real changes made)

. replace   party_vote=.         if        prtvtach==15
(0 real changes made)

. replace   party_vote=0         if        prtvtach==16
(43 real changes made)

. * Czech Republic: no observations
. * Germany
. replace   party_vote=3         if        prtvbde1==1
(742 real changes made)

. replace   party_vote=5         if        prtvbde1==2
(633 real changes made)

. replace   party_vote=1         if        prtvbde1==3
(131 real changes made)

. replace   party_vote=4         if        prtvbde1==4
(76 real changes made)

. replace   party_vote=2         if        prtvbde1==5
(146 real changes made)

. replace   party_vote=7         if        prtvbde1==6
(5 real changes made)

. replace   party_vote=7         if        prtvbde1==7
(11 real changes made)

. replace   party_vote=0         if        prtvbde1==8
(14 real changes made)

. * Denmark
. replace   party_vote=3         if        prtvtadk==1
(335 real changes made)

. replace   party_vote=1         if        prtvtadk==2
(109 real changes made)

. replace   party_vote=6         if        prtvtadk==3
(110 real changes made)

. replace   party_vote=5         if        prtvtadk==4
(6 real changes made)

. replace   party_vote=1         if        prtvtadk==5
(106 real changes made)

. replace   party_vote=7         if        prtvtadk==6
(97 real changes made)

. replace   party_vote=5         if        prtvtadk==7
(21 real changes made)

. replace   party_vote=4         if        prtvtadk==8
(413 real changes made)

. replace   party_vote=7         if        prtvtadk==9
(3 real changes made)

. replace   party_vote=2         if        prtvtadk==10
(41 real changes made)

. replace   party_vote=0         if        prtvtadk==11
(3 real changes made)

. * Spain
. replace   party_vote=6         if        prtvtaes==1
(355 real changes made)

. replace   party_vote=3         if        prtvtaes==2
(508 real changes made)

. replace   party_vote=2         if        prtvtaes==3
(53 real changes made)

. replace   party_vote=6         if        prtvtaes==4
(29 real changes made)

. replace   party_vote=0         if        prtvtaes==5
(24 real changes made)

. replace   party_vote=.         if        prtvtaes==6
(0 real changes made)

. replace   party_vote=0         if        prtvtaes==7
(24 real changes made)

. replace   party_vote=0         if        prtvtaes==8
(2 real changes made)

. replace   party_vote=0         if        prtvtaes==9
(15 real changes made)

. replace   party_vote=0         if        prtvtaes==10
(5 real changes made)

. replace   party_vote=0         if        prtvtaes==11
(9 real changes made)

. replace   party_vote=0         if        prtvtaes==12
(1 real change made)

. replace   party_vote=.         if        prtvtaes==13
(0 real changes made)

. replace   party_vote=0         if        prtvtaes==74
(15 real changes made)

. replace   party_vote=.         if        prtvtaes==75
(0 real changes made)

. replace   party_vote=.         if        prtvtaes==76
(0 real changes made)

. * Finland
. replace   party_vote=6         if        prtvtfi== 1
(291 real changes made)

. replace   party_vote=0         if        prtvtfi== 2
(53 real changes made)

. replace   party_vote=5         if        prtvtfi== 4
(302 real changes made)

. replace   party_vote=7         if        prtvtfi== 5
(11 real changes made)

. replace   party_vote=5         if        prtvtfi== 6
(48 real changes made)

. replace   party_vote=1         if        prtvtfi== 8
(100 real changes made)

. replace   party_vote=3         if        prtvtfi== 9
(347 real changes made)

. replace   party_vote=2         if        prtvtfi== 10
(63 real changes made)

. replace   party_vote=.         if        prtvtfi== 11
(0 real changes made)

. replace   party_vote=0         if        prtvtfi== 14
(8 real changes made)

. * France
. replace   party_vote=.         if        prtvtafr==1
(0 real changes made)

. replace   party_vote=4         if        prtvtafr==2
(7 real changes made)

. replace   party_vote=7         if        prtvtafr==3
(64 real changes made)

. replace   party_vote=.         if        prtvtafr==4
(0 real changes made)

. replace   party_vote=.         if        prtvtafr==5
(0 real changes made)

. replace   party_vote=2         if        prtvtafr==6
(9 real changes made)

. replace   party_vote=7         if        prtvtafr==7
(18 real changes made)

. replace   party_vote=.         if        prtvtafr==8
(0 real changes made)

. replace   party_vote=2         if        prtvtafr==9
(49 real changes made)

. replace   party_vote=3         if        prtvtafr==10
(383 real changes made)

. replace   party_vote=.         if        prtvtafr==11
(0 real changes made)

. replace   party_vote=6         if        prtvtafr==12
(274 real changes made)

. replace   party_vote=4         if        prtvtafr==13
(67 real changes made)

. replace   party_vote=1         if        prtvtafr==14
(74 real changes made)

. replace   party_vote=.         if        prtvtafr==15
(0 real changes made)

. replace   party_vote=0         if        prtvtafr==16
(9 real changes made)

. replace   party_vote=.         if        prtvtafr==17
(0 real changes made)

. * Great Britain
. replace   party_vote=6         if        prtvtagb==1
(451 real changes made)

. replace   party_vote=3         if        prtvtagb==2
(652 real changes made)

. replace   party_vote=4         if        prtvtagb==3
(287 real changes made)

. replace   party_vote=0         if        prtvtagb==4
(30 real changes made)

. replace   party_vote=0         if        prtvtagb==5
(21 real changes made)

. replace   party_vote=.         if        prtvtagb==6
(0 real changes made)

. replace   party_vote=7         if        prtvtagb==7
(8 real changes made)

. replace   party_vote=0         if        prtvtagb==8
(7 real changes made)

. replace   party_vote=.         if        prtvtagb==9
(0 real changes made)

. replace   party_vote=6         if        prtvtagb==11
(8 real changes made)

. replace   party_vote=0         if        prtvtagb==12
(10 real changes made)

. replace   party_vote=2         if        prtvtagb==13
(2 real changes made)

. replace   party_vote=3         if        prtvtagb==14
(7 real changes made)

. replace   party_vote=0         if        prtvtagb==15
(1 real change made)

. replace   party_vote=0         if        prtvtagb==22
(10 real changes made)

. * Greece: no observations
. * Ireland
. replace   party_vote=6         if        prtvtie== 1
(526 real changes made)

. replace   party_vote=5         if        prtvtie== 2
(288 real changes made)

. replace   party_vote=3         if        prtvtie== 3
(90 real changes made)

. replace   party_vote=4         if        prtvtie== 4
(29 real changes made)

. replace   party_vote=1         if        prtvtie== 5
(41 real changes made)

. replace   party_vote=2         if        prtvtie== 6
(53 real changes made)

. replace   party_vote=.         if        prtvtie== 7
(0 real changes made)

. replace   party_vote=0         if        prtvtie== 8
(54 real changes made)

. * Israel: no observations
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg: no observations
. * Netherlands
. replace   party_vote=5         if        prtvtbnl==1
(365 real changes made)

. replace   party_vote=3         if        prtvtbnl==2
(367 real changes made)

. replace   party_vote=4         if        prtvtbnl==3
(270 real changes made)

. replace   party_vote=7         if        prtvtbnl==4
(69 real changes made)

. replace   party_vote=4         if        prtvtbnl==5
(83 real changes made)

. replace   party_vote=1         if        prtvtbnl==6
(71 real changes made)

. replace   party_vote=2         if        prtvtbnl==7
(118 real changes made)

. replace   party_vote=5         if        prtvtbnl==8
(39 real changes made)

. replace   party_vote=4         if        prtvtbnl==9
(4 real changes made)

. replace   party_vote=4         if        prtvtbnl==10
(16 real changes made)

. replace   party_vote=0         if        prtvtbnl==11
(13 real changes made)

. replace   party_vote=.         if        prtvtbnl==12
(0 real changes made)

. * Norway
. replace   party_vote=.         if        prtvtno== 1
(0 real changes made)

. replace   party_vote=2         if        prtvtno== 2
(149 real changes made)

. replace   party_vote=3         if        prtvtno== 3
(409 real changes made)

. replace   party_vote=4         if        prtvtno== 4
(62 real changes made)

. replace   party_vote=5         if        prtvtno== 5
(95 real changes made)

. replace   party_vote=5         if        prtvtno== 6
(90 real changes made)

. replace   party_vote=6         if        prtvtno== 7
(235 real changes made)

. replace   party_vote=7         if        prtvtno== 8
(227 real changes made)

. replace   party_vote=.         if        prtvtno== 9
(0 real changes made)

. replace   party_vote=0         if        prtvtno== 10
(15 real changes made)

. * Portugal
. replace   party_vote=2         if        prtvtapt==1
(33 real changes made)

. replace   party_vote=5         if        prtvtapt==2
(23 real changes made)

. replace   party_vote=2         if        prtvtapt==3
(89 real changes made)

. replace   party_vote=.         if        prtvtapt==4
(0 real changes made)

. replace   party_vote=.         if        prtvtapt==6
(0 real changes made)

. replace   party_vote=.         if        prtvtapt==7
(0 real changes made)

. replace   party_vote=5         if        prtvtapt==10
(359 real changes made)

. replace   party_vote=3         if        prtvtapt==11
(615 real changes made)

. replace   party_vote=.         if        prtvtapt==12
(0 real changes made)

. * Sweden
. replace   party_vote=5         if        prtvtse== 1
(113 real changes made)

. replace   party_vote=4         if        prtvtse== 2
(128 real changes made)

. replace   party_vote=5         if        prtvtse== 3
(89 real changes made)

. replace   party_vote=1         if        prtvtse== 4
(111 real changes made)

. replace   party_vote=6         if        prtvtse== 5
(452 real changes made)

. replace   party_vote=3         if        prtvtse== 6
(497 real changes made)

. replace   party_vote=2         if        prtvtse== 7
(81 real changes made)

. replace   party_vote=0         if        prtvtse== 8
(49 real changes made)

. * Definition of value labels
. label def party_vote 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_vote party_vote

. 
. *** Party closeness (not classified parties are missings)
. * Creation of variable
. gen party_close=.
(28168 missing values generated)

. label var party_close "Party closeness"

. * Austria
. replace   party_close=3         if        prtclaat==1
(338 real changes made)

. replace   party_close=5         if        prtclaat==2
(368 real changes made)

. replace   party_close=7         if        prtclaat==3
(70 real changes made)

. replace   party_close=7         if        prtclaat==4
(13 real changes made)

. replace   party_close=1         if        prtclaat==5
(149 real changes made)

. replace   party_close=4         if        prtclaat==6
(3 real changes made)

. replace   party_close=2         if        prtclaat==7
(7 real changes made)

. replace   party_close=0         if        prtclaat==8
(1 real change made)

. * Belgium
. replace   party_close=1         if        prtclabe==1
(49 real changes made)

. replace   party_close=5         if        prtclabe==2
(203 real changes made)

. replace   party_close=5         if        prtclabe==3
(23 real changes made)

. replace   party_close=3         if        prtclabe==5
(102 real changes made)

. replace   party_close=.         if        prtclabe==6
(0 real changes made)

. replace   party_close=7         if        prtclabe==7
(4 real changes made)

. replace   party_close=4         if        prtclabe==8
(67 real changes made)

. replace   party_close=5         if        prtclabe==9
(105 real changes made)

. replace   party_close=1         if        prtclabe==10
(68 real changes made)

. replace   party_close=7         if        prtclabe==11
(66 real changes made)

. replace   party_close=4         if        prtclabe==12
(8 real changes made)

. replace   party_close=3         if        prtclabe==13
(117 real changes made)

. replace   party_close=0         if        prtclabe==14
(158 real changes made)

. replace   party_close=.         if        prtclabe==15
(0 real changes made)

. replace   party_close=.         if        prtclabe==16
(0 real changes made)

. * Switzerland
. replace   party_close=4         if        prtclach==1
(141 real changes made)

. replace   party_close=5         if        prtclach==2
(115 real changes made)

. replace   party_close=3         if        prtclach==3
(294 real changes made)

. replace   party_close=7         if        prtclach==4
(226 real changes made)

. replace   party_close=4         if        prtclach==5
(25 real changes made)

. replace   party_close=5         if        prtclach==7
(22 real changes made)

. replace   party_close=.         if        prtclach==8
(0 real changes made)

. replace   party_close=2         if        prtclach==9
(9 real changes made)

. replace   party_close=1         if        prtclach==10
(102 real changes made)

. replace   party_close=7         if        prtclach==11
(2 real changes made)

. replace   party_close=7         if        prtclach==12
(9 real changes made)

. replace   party_close=7         if        prtclach==13
(2 real changes made)

. replace   party_close=.         if        prtclach==14
(0 real changes made)

. replace   party_close=.         if        prtclach==15
(0 real changes made)

. replace   party_close=0         if        prtclach==16
(8 real changes made)

. * Czech Republic: no observations
. * Germany
. replace   party_close=3         if        prtclbde==1
(439 real changes made)

. replace   party_close=5         if        prtclbde==2
(381 real changes made)

. replace   party_close=1         if        prtclbde==3
(151 real changes made)

. replace   party_close=4         if        prtclbde==4
(56 real changes made)

. replace   party_close=2         if        prtclbde==5
(106 real changes made)

. replace   party_close=7         if        prtclbde==6
(9 real changes made)

. replace   party_close=7         if        prtclbde==7
(17 real changes made)

. replace   party_close=0         if        prtclbde==8
(15 real changes made)

. * Denmark
. replace   party_close=3         if        prtcladk==1
(298 real changes made)

. replace   party_close=1         if        prtcladk==2
(83 real changes made)

. replace   party_close=6         if        prtcladk==3
(87 real changes made)

. replace   party_close=5         if        prtcladk==4
(3 real changes made)

. replace   party_close=1         if        prtcladk==5
(121 real changes made)

. replace   party_close=7         if        prtcladk==6
(72 real changes made)

. replace   party_close=5         if        prtcladk==7
(17 real changes made)

. replace   party_close=4         if        prtcladk==8
(322 real changes made)

. replace   party_close=7         if        prtcladk==9
(3 real changes made)

. replace   party_close=2         if        prtcladk==10
(32 real changes made)

. replace   party_close=0         if        prtcladk==11
(3 real changes made)

. * Spain
. replace   party_close=6         if        prtclaes==1
(282 real changes made)

. replace   party_close=3         if        prtclaes==2
(382 real changes made)

. replace   party_close=2         if        prtclaes==3
(52 real changes made)

. replace   party_close=6         if        prtclaes==4
(26 real changes made)

. replace   party_close=0         if        prtclaes==5
(22 real changes made)

. replace   party_close=.         if        prtclaes==6
(0 real changes made)

. replace   party_close=0         if        prtclaes==7
(22 real changes made)

. replace   party_close=0         if        prtclaes==8
(3 real changes made)

. replace   party_close=0         if        prtclaes==9
(15 real changes made)

. replace   party_close=0         if        prtclaes==10
(1 real change made)

. replace   party_close=0         if        prtclaes==11
(10 real changes made)

. replace   party_close=0         if        prtclaes==12
(2 real changes made)

. replace   party_close=.         if        prtclaes==13
(0 real changes made)

. replace   party_close=0         if        prtclaes==74
(11 real changes made)

. replace   party_close=.         if        prtclaes==75
(0 real changes made)

. replace   party_close=.         if        prtclaes==76
(0 real changes made)

. * Finland
. replace   party_close=6         if        prtclfi== 1
(211 real changes made)

. replace   party_close=0         if        prtclfi== 2
(37 real changes made)

. replace   party_close=5         if        prtclfi== 4
(231 real changes made)

. replace   party_close=7         if        prtclfi== 5
(9 real changes made)

. replace   party_close=5         if        prtclfi== 6
(46 real changes made)

. replace   party_close=1         if        prtclfi== 8
(107 real changes made)

. replace   party_close=3         if        prtclfi== 9
(267 real changes made)

. replace   party_close=2         if        prtclfi== 10
(52 real changes made)

. replace   party_close=.         if        prtclfi== 11
(0 real changes made)

. replace   party_close=0         if        prtclfi== 14
(5 real changes made)

. * France
. replace   party_close=.         if        prtclafr==1
(0 real changes made)

. replace   party_close=4         if        prtclafr==2
(43 real changes made)

. replace   party_close=7         if        prtclafr==3
(24 real changes made)

. replace   party_close=.         if        prtclafr==4
(0 real changes made)

. replace   party_close=.         if        prtclafr==5
(0 real changes made)

. replace   party_close=2         if        prtclafr==6
(7 real changes made)

. replace   party_close=7         if        prtclafr==7
(22 real changes made)

. replace   party_close=.         if        prtclafr==8
(0 real changes made)

. replace   party_close=2         if        prtclafr==9
(9 real changes made)

. replace   party_close=3         if        prtclafr==10
(367 real changes made)

. replace   party_close=.         if        prtclafr==11
(0 real changes made)

. replace   party_close=6         if        prtclafr==12
(95 real changes made)

. replace   party_close=4         if        prtclafr==13
(56 real changes made)

. replace   party_close=1         if        prtclafr==14
(27 real changes made)

. replace   party_close=.         if        prtclafr==15
(0 real changes made)

. replace   party_close=0         if        prtclafr==16
(0 real changes made)

. replace   party_close=.         if        prtclafr==17
(0 real changes made)

. * Great Britain
. replace   party_close=6         if        prtclagb==1
(352 real changes made)

. replace   party_close=3         if        prtclagb==2
(476 real changes made)

. replace   party_close=4         if        prtclagb==3
(152 real changes made)

. replace   party_close=0         if        prtclagb==4
(25 real changes made)

. replace   party_close=0         if        prtclagb==5
(17 real changes made)

. replace   party_close=.         if        prtclagb==6
(0 real changes made)

. replace   party_close=7         if        prtclagb==7
(17 real changes made)

. replace   party_close=0         if        prtclagb==8
(5 real changes made)

. replace   party_close=.         if        prtclagb==9
(0 real changes made)

. replace   party_close=6         if        prtclagb==11
(5 real changes made)

. replace   party_close=0         if        prtclagb==12
(8 real changes made)

. replace   party_close=2         if        prtclagb==13
(2 real changes made)

. replace   party_close=3         if        prtclagb==14
(6 real changes made)

. replace   party_close=0         if        prtclagb==15
(1 real change made)

. replace   party_close=0         if        prtclagb==22
(10 real changes made)

. * Greece: no observations
. * Ireland
. replace   party_close=6         if        prtclaie== 1
(387 real changes made)

. replace   party_close=5         if        prtclaie== 2
(191 real changes made)

. replace   party_close=3         if        prtclaie== 3
(67 real changes made)

. replace   party_close=4         if        prtclaie== 4
(21 real changes made)

. replace   party_close=1         if        prtclaie== 5
(48 real changes made)

. replace   party_close=2         if        prtclaie== 6
(39 real changes made)

. replace   party_close=.         if        prtclaie== 7
(0 real changes made)

. replace   party_close=0         if        prtclaie== 8
(4 real changes made)

. * Israel: no observations
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg: no observations
. * Netherlands
. replace   party_close=5         if        prtclnl==1
(277 real changes made)

. replace   party_close=3         if        prtclnl==2
(255 real changes made)

. replace   party_close=4         if        prtclnl==3
(180 real changes made)

. replace   party_close=7         if        prtclnl==4
(8 real changes made)

. replace   party_close=4         if        prtclnl==5
(34 real changes made)

. replace   party_close=1         if        prtclnl==6
(68 real changes made)

. replace   party_close=2         if        prtclnl==7
(169 real changes made)

. replace   party_close=5         if        prtclnl==8
(54 real changes made)

. replace   party_close=4         if        prtclnl==9
(3 real changes made)

. replace   party_close=4         if        prtclnl==10
(19 real changes made)

. replace   party_close=0         if        prtclnl==11
(37 real changes made)

. replace   party_close=.         if        prtclnl==12
(0 real changes made)

. * Norway
. replace   party_close=.         if        prtclno== 1
(0 real changes made)

. replace   party_close=2         if        prtclno== 2
(131 real changes made)

. replace   party_close=3         if        prtclno== 3
(332 real changes made)

. replace   party_close=4         if        prtclno== 4
(52 real changes made)

. replace   party_close=5         if        prtclno== 5
(83 real changes made)

. replace   party_close=5         if        prtclno== 6
(59 real changes made)

. replace   party_close=6         if        prtclno== 7
(184 real changes made)

. replace   party_close=7         if        prtclno== 8
(204 real changes made)

. replace   party_close=.         if        prtclno== 9
(0 real changes made)

. replace   party_close=0         if        prtclno== 10
(6 real changes made)

. * Portugal
. replace   party_close=2         if        prtclbpt==1
(44 real changes made)

. replace   party_close=5         if        prtclbpt==2
(28 real changes made)

. replace   party_close=2         if        prtclbpt==3
(86 real changes made)

. replace   party_close=.         if        prtclbpt==4
(0 real changes made)

. replace   party_close=.         if        prtclbpt==6
(0 real changes made)

. replace   party_close=.         if        prtclbpt==7
(0 real changes made)

. replace   party_close=5         if        prtclbpt==10
(335 real changes made)

. replace   party_close=3         if        prtclbpt==11
(461 real changes made)

. replace   party_close=.         if        prtclbpt==12
(0 real changes made)

. * Sweden
. replace   party_close=5         if        prtclse== 1
(81 real changes made)

. replace   party_close=4         if        prtclse== 2
(115 real changes made)

. replace   party_close=5         if        prtclse== 3
(76 real changes made)

. replace   party_close=1         if        prtclse== 4
(103 real changes made)

. replace   party_close=6         if        prtclse== 5
(337 real changes made)

. replace   party_close=3         if        prtclse== 6
(444 real changes made)

. replace   party_close=2         if        prtclse== 7
(82 real changes made)

. replace   party_close=0         if        prtclse== 8
(33 real changes made)

. * Definition of value labels
. label def party_close 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_close party_close

. 
. *** Voter participation
. * Creation of variable 
. gen voted=vote==1

. replace voted=. if vote>2
(2506 real changes made, 2506 to missing)

. lab var voted "Voter participation"

. * Definition of value label
. lab define voted 1 "Voter" 0 "Non-voter"

. lab values voted voted

. 
. 
. save "ESSrecoded3.dta", replace
file ESSrecoded3.dta saved

. 
. *----------------------------------------------------------------------------------------*
. *       4. prepare/recode ESS4
. *----------------------------------------------------------------------------------------*
. 
. 
. 
. *----------------------------------------------------------------------------------------*
. *       1. Operationalization of variables, round 4 - 2008
. *----------------------------------------------------------------------------------------*
. 
. * Import dataset (from ESS website)
. use ESS4e04_3.dta

. 
. 
. 
. *       1.0 country selection: 
. * AT, BE, CH, GE, DK, SP, FIN, FR, UK, GR, IE, IT, NL, NO, PT, SE
.  
. drop if cntry=="CZ"
(2018 observations deleted)

. drop if cntry=="HU"
(1544 observations deleted)

. drop if cntry=="LU"
(0 observations deleted)

. drop if cntry=="PL"
(1619 observations deleted)

. drop if cntry=="SI"
(1286 observations deleted)

. drop if cntry=="IL"
(2490 observations deleted)

. drop if cntry=="EE"
(1661 observations deleted)

. drop if cntry=="IS"
(0 observations deleted)

. drop if cntry=="SK"
(1810 observations deleted)

. drop if cntry=="TR"
(2416 observations deleted)

. drop if cntry=="UA"
(1845 observations deleted)

. drop if cntry=="RU"
(2512 observations deleted)

. drop if cntry=="BG"
(2230 observations deleted)

. drop if cntry=="CY"
(1215 observations deleted)

. drop if cntry=="LV"
(1980 observations deleted)

. drop if cntry=="RO"
(2146 observations deleted)

. drop if cntry=="HR"
(1484 observations deleted)

. drop if cntry=="LT"
(0 observations deleted)

. 
. 
. gen at=cntry=="AT"

. lab var at "Country dummy Austria"

. gen be=cntry=="BE"

. lab var be "Country dummy Belgium"

. gen ch=cntry=="CH"

. lab var ch "Country dummy Switzerland"

. gen de=cntry=="DE"

. lab var de "Country dummy Germany"

. gen dk=cntry=="DK"

. lab var dk "Country dummy Denmark"

. gen es=cntry=="ES"

. lab var es "Country dummy Spain"

. gen fi=cntry=="FI"

. lab var fi "Country dummy Finland"

. gen fr=cntry=="FR"

. lab var fr "Country dummy France"

. gen gb=cntry=="GB"

. lab var gb "Country dummy United Kingdom"

. gen gr=cntry=="GR"

. lab var gr "Country dummy Greece"

. gen ie=cntry=="IE"

. lab var ie "Country dummy Ireland"

. gen it=cntry=="IT"

. lab var it "Country dummy Italy"

. gen nl=cntry=="NL"

. lab var nl "Country dummy Netherlands"

. gen no=cntry=="NO"

. lab var no "Country dummy Norway"

. gen pt=cntry=="PT"

. lab var pt "Country dummy Portugal"

. gen se=cntry=="SE"

. lab var se "Country dummy Sweden"

. 
. 
. *******************************
. *   1.1 GLOBALIZATION LOSERS
. *******************************
. 
. ** from Rommel /Walter: combination of offshoreable and low-skill (educlvl und offshore2)
. 
. * Creation of variable
. gen educyrs=eduyrs

. lab var educyrs "Years of Education"

. * Recoding of variable
. replace educyrs=25 if eduyrs>25 & eduyrs<.
(302 real changes made)

. 
. 
. ***** 2.2 Education level
. *----------------------------------------------------------------------------------------*
. 
. * Creation of variable
. gen educlvl=edulvla

. lab var educlvl "Education level"

. * Recoding of variable and definition of value label
. recode educlvl (55=.)
(educlvl: 9 changes made)

. label define educlvl 1 "Less than lower secondary education" ///
>         2 "Lower secondary education completed" ///
>         3 "Upper secondary education completed" ///
>         4 "Post-secondary, non-tertiary education completed" ///
>         5 "Tertiary education completed"

. label values educlvl educlvl

. 
. 
. *** Creation of 4-digit ISCO-Code
. gen isco=iscoco

. lab var isco "4-digit ISCO-code"

. 
. *** Metric offshoreability variable
. * Creation of variable
. gen offshore=.
(28496 missing values generated)

. replace offshore=0 if isco<.
(28496 real changes made)

. replace offshore=49 if isco==1142
(5 real changes made)

. replace offshore=55 if isco==1222
(109 real changes made)

. replace offshore=28 if isco==1226
(56 real changes made)

. replace offshore=55 if isco==1228
(5 real changes made)

. replace offshore=83 if isco==1231
(177 real changes made)

. replace offshore=49 if isco==1232
(75 real changes made)

. replace offshore=40 if isco==1233
(138 real changes made)

. replace offshore=53 if isco==1234
(20 real changes made)

. replace offshore=49 if isco==1235
(30 real changes made)

. replace offshore=55 if isco==1236
(61 real changes made)

. replace offshore=55 if isco==1237
(36 real changes made)

. replace offshore=55 if isco==1311
(55 real changes made)

. replace offshore=55 if isco==1312
(47 real changes made)

. replace offshore=55 if isco==1313
(76 real changes made)

. replace offshore=55 if isco==1314
(394 real changes made)

. replace offshore=55 if isco==1315
(164 real changes made)

. replace offshore=48 if isco==1316
(35 real changes made)

. replace offshore=52 if isco==1317
(85 real changes made)

. replace offshore=55 if isco==1318
(22 real changes made)

. replace offshore=55 if isco==1319
(107 real changes made)

. replace offshore=66 if isco==2111
(4 real changes made)

. replace offshore=74 if isco==2112
(2 real changes made)

. replace offshore=66 if isco==2113
(9 real changes made)

. replace offshore=66 if isco==2114
(6 real changes made)

. replace offshore=89 if isco==2121
(8 real changes made)

. replace offshore=96 if isco==2122
(5 real changes made)

. replace offshore=83 if isco==2131
(133 real changes made)

. replace offshore=90 if isco==2139
(70 real changes made)

. replace offshore=25 if isco==2141
(80 real changes made)

. replace offshore=64 if isco==2143
(28 real changes made)

. replace offshore=74 if isco==2144
(28 real changes made)

. replace offshore=72 if isco==2146
(20 real changes made)

. replace offshore=69 if isco==2147
(11 real changes made)

. replace offshore=86 if isco==2148
(10 real changes made)

. replace offshore=71 if isco==2149
(141 real changes made)

. replace offshore=81 if isco==2211
(26 real changes made)

. replace offshore=83 if isco==2212
(6 real changes made)

. replace offshore=72 if isco==2411
(123 real changes made)

. replace offshore=50 if isco==2419
(198 real changes made)

. replace offshore=74 if isco==2421
(46 real changes made)

. replace offshore=67 if isco==2444
(22 real changes made)

. replace offshore=90 if isco==2451
(78 real changes made)

. replace offshore=78 if isco==2452
(45 real changes made)

. replace offshore=25 if isco==2453
(28 real changes made)

. replace offshore=48 if isco==2455
(24 real changes made)

. replace offshore=47 if isco==3111
(38 real changes made)

. replace offshore=47 if isco==3113
(31 real changes made)

. replace offshore=47 if isco==3114
(51 real changes made)

. replace offshore=72 if isco==3115
(64 real changes made)

. replace offshore=47 if isco==3116
(14 real changes made)

. replace offshore=94 if isco==3118
(55 real changes made)

. replace offshore=54 if isco==3119
(113 real changes made)

. replace offshore=75 if isco==3121
(43 real changes made)

. replace offshore=84 if isco==3122
(40 real changes made)

. replace offshore=68 if isco==3123
(1 real change made)

. replace offshore=36 if isco==3131
(37 real changes made)

. replace offshore=36 if isco==3132
(11 real changes made)

. replace offshore=46 if isco==3133
(14 real changes made)

. replace offshore=34 if isco==3139
(6 real changes made)

. replace offshore=52 if isco==3141
(6 real changes made)

. replace offshore=60 if isco==3152
(92 real changes made)

. replace offshore=55 if isco==3211
(47 real changes made)

. replace offshore=55 if isco==3212
(9 real changes made)

. replace offshore=44 if isco==3213
(1 real change made)

. replace offshore=32 if isco==3228
(29 real changes made)

. replace offshore=51 if isco==3411
(15 real changes made)

. replace offshore=85 if isco==3412
(67 real changes made)

. replace offshore=50 if isco==3414
(11 real changes made)

. replace offshore=55 if isco==3416
(67 real changes made)

. replace offshore=59 if isco==3419
(192 real changes made)

. replace offshore=51 if isco==3421
(5 real changes made)

. replace offshore=48 if isco==3422
(13 real changes made)

. replace offshore=38 if isco==3431
(313 real changes made)

. replace offshore=51 if isco==3432
(87 real changes made)

. replace offshore=84 if isco==3433
(151 real changes made)

. replace offshore=84 if isco==3434
(4 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=100 if isco==3442
(21 real changes made)

. replace offshore=85 if isco==3471
(97 real changes made)

. replace offshore=30 if isco==3472
(3 real changes made)

. replace offshore=95 if isco==4111
(15 real changes made)

. replace offshore=94 if isco==4112
(7 real changes made)

. replace offshore=100 if isco==4113
(23 real changes made)

. replace offshore=71 if isco==4114
(4 real changes made)

. replace offshore=38 if isco==4115
(387 real changes made)

. replace offshore=84 if isco==4121
(253 real changes made)

. replace offshore=54 if isco==4122
(119 real changes made)

. replace offshore=31 if isco==4131
(214 real changes made)

. replace offshore=67 if isco==4132
(107 real changes made)

. replace offshore=67 if isco==4133
(81 real changes made)

. replace offshore=46 if isco==4141
(56 real changes made)

. replace offshore=26 if isco==4142
(121 real changes made)

. replace offshore=95 if isco==4143
(2 real changes made)

. replace offshore=54 if isco==4144
(0 real changes made)

. replace offshore=54 if isco==4190
(481 real changes made)

. replace offshore=94 if isco==4211
(124 real changes made)

. replace offshore=54 if isco==4214
(0 real changes made)

. replace offshore=65 if isco==4215
(7 real changes made)

. replace offshore=72 if isco==4221
(21 real changes made)

. replace offshore=54 if isco==4222
(155 real changes made)

. replace offshore=50 if isco==4223
(90 real changes made)

. replace offshore=86 if isco==5113
(11 real changes made)

. replace offshore=59 if isco==6142
(0 real changes made)

. replace offshore=36 if isco==7111
(19 real changes made)

. replace offshore=35 if isco==7112
(2 real changes made)

. replace offshore=36 if isco==7113
(5 real changes made)

. replace offshore=65 if isco==7211
(16 real changes made)

. replace offshore=69 if isco==7212
(85 real changes made)

. replace offshore=70 if isco==7213
(45 real changes made)

. replace offshore=70 if isco==7222
(43 real changes made)

. replace offshore=68 if isco==7223
(90 real changes made)

. replace offshore=68 if isco==7224
(11 real changes made)

. replace offshore=26 if isco==7311
(36 real changes made)

. replace offshore=64 if isco==7313
(14 real changes made)

. replace offshore=69 if isco==7321
(11 real changes made)

. replace offshore=69 if isco==7322
(11 real changes made)

. replace offshore=68 if isco==7323
(0 real changes made)

. replace offshore=68 if isco==7324
(10 real changes made)

. replace offshore=60 if isco==7331
(10 real changes made)

. replace offshore=75 if isco==7332
(2 real changes made)

. replace offshore=59 if isco==7341
(20 real changes made)

. replace offshore=59 if isco==7342
(4 real changes made)

. replace offshore=59 if isco==7343
(10 real changes made)

. replace offshore=34 if isco==7344
(8 real changes made)

. replace offshore=59 if isco==7345
(7 real changes made)

. replace offshore=75 if isco==7346
(5 real changes made)

. replace offshore=68 if isco==7413
(5 real changes made)

. replace offshore=27 if isco==7414
(4 real changes made)

. replace offshore=55 if isco==7415
(0 real changes made)

. replace offshore=43 if isco==7421
(7 real changes made)

. replace offshore=57 if isco==7422
(67 real changes made)

. replace offshore=57 if isco==7423
(8 real changes made)

. replace offshore=66 if isco==7424
(1 real change made)

. replace offshore=75 if isco==7431
(6 real changes made)

. replace offshore=75 if isco==7432
(11 real changes made)

. replace offshore=75 if isco==7433
(84 real changes made)

. replace offshore=73 if isco==7434
(0 real changes made)

. replace offshore=75 if isco==7435
(10 real changes made)

. replace offshore=75 if isco==7436
(120 real changes made)

. replace offshore=57 if isco==7437
(17 real changes made)

. replace offshore=75 if isco==7441
(8 real changes made)

. replace offshore=72 if isco==7442
(24 real changes made)

. replace offshore=36 if isco==8111
(3 real changes made)

. replace offshore=36 if isco==8112
(7 real changes made)

. replace offshore=36 if isco==8113
(4 real changes made)

. replace offshore=59 if isco==8121
(11 real changes made)

. replace offshore=68 if isco==8122
(4 real changes made)

. replace offshore=70 if isco==8123
(3 real changes made)

. replace offshore=68 if isco==8124
(0 real changes made)

. replace offshore=69 if isco==8131
(7 real changes made)

. replace offshore=68 if isco==8139
(3 real changes made)

. replace offshore=57 if isco==8141
(29 real changes made)

. replace offshore=68 if isco==8142
(3 real changes made)

. replace offshore=68 if isco==8143
(20 real changes made)

. replace offshore=68 if isco==8151
(0 real changes made)

. replace offshore=70 if isco==8152
(3 real changes made)

. replace offshore=68 if isco==8153
(0 real changes made)

. replace offshore=68 if isco==8154
(0 real changes made)

. replace offshore=29 if isco==8155
(4 real changes made)

. replace offshore=68 if isco==8159
(8 real changes made)

. replace offshore=42 if isco==8161
(13 real changes made)

. replace offshore=55 if isco==8162
(13 real changes made)

. replace offshore=29 if isco==8163
(8 real changes made)

. replace offshore=64 if isco==8171
(0 real changes made)

. replace offshore=68 if isco==8172
(0 real changes made)

. replace offshore=68 if isco==8211
(61 real changes made)

. replace offshore=68 if isco==8212
(9 real changes made)

. replace offshore=68 if isco==8221
(5 real changes made)

. replace offshore=35 if isco==8222
(4 real changes made)

. replace offshore=68 if isco==8223
(15 real changes made)

. replace offshore=41 if isco==8224
(4 real changes made)

. replace offshore=29 if isco==8229
(10 real changes made)

. replace offshore=69 if isco==8231
(3 real changes made)

. replace offshore=68 if isco==8232
(44 real changes made)

. replace offshore=57 if isco==8240
(9 real changes made)

. replace offshore=58 if isco==8251
(32 real changes made)

. replace offshore=59 if isco==8252
(9 real changes made)

. replace offshore=68 if isco==8253
(15 real changes made)

. replace offshore=75 if isco==8261
(20 real changes made)

. replace offshore=75 if isco==8262
(33 real changes made)

. replace offshore=75 if isco==8263
(64 real changes made)

. replace offshore=75 if isco==8264
(23 real changes made)

. replace offshore=75 if isco==8265
(1 real change made)

. replace offshore=75 if isco==8266
(17 real changes made)

. replace offshore=75 if isco==8269
(25 real changes made)

. replace offshore=27 if isco==8271
(34 real changes made)

. replace offshore=68 if isco==8272
(8 real changes made)

. replace offshore=68 if isco==8273
(6 real changes made)

. replace offshore=30 if isco==8274
(24 real changes made)

. replace offshore=31 if isco==8275
(5 real changes made)

. replace offshore=68 if isco==8276
(1 real change made)

. replace offshore=27 if isco==8277
(0 real changes made)

. replace offshore=68 if isco==8278
(8 real changes made)

. replace offshore=66 if isco==8281
(49 real changes made)

. replace offshore=66 if isco==8282
(35 real changes made)

. replace offshore=66 if isco==8283
(20 real changes made)

. replace offshore=68 if isco==8284
(15 real changes made)

. replace offshore=57 if isco==8285
(13 real changes made)

. replace offshore=64 if isco==8286
(1 real change made)

. replace offshore=68 if isco==8290
(95 real changes made)

. replace offshore=34 if isco==8340
(19 real changes made)

. replace offshore=95 if isco==9113
(36 real changes made)

. replace offshore=64 if isco==9321
(0 real changes made)

. replace offshore=29 if isco==9333
(0 real changes made)

. replace offshore=55 if isco==1227
(34 real changes made)

. replace offshore=89 if isco==2121
(0 real changes made)

. replace offshore=100 if isco==2132
(0 real changes made)

. replace offshore=70 if isco==2145
(67 real changes made)

. replace offshore=71 if isco==2149
(0 real changes made)

. replace offshore=81 if isco==2211
(0 real changes made)

. replace offshore=46 if isco==2412
(108 real changes made)

. replace offshore=50 if isco==2419
(0 real changes made)

. replace offshore=33 if isco==2432
(17 real changes made)

. replace offshore=89 if isco==2441
(51 real changes made)

. replace offshore=48 if isco==2455
(0 real changes made)

. replace offshore=72 if isco==3115
(0 real changes made)

. replace offshore=54 if isco==3119
(0 real changes made)

. replace offshore=46 if isco==3133
(0 real changes made)

. replace offshore=34 if isco==3139
(0 real changes made)

. replace offshore=34 if isco==3224
(20 real changes made)

. replace offshore=51 if isco==3411
(0 real changes made)

. replace offshore=25 if isco==3415
(284 real changes made)

. replace offshore=50 if isco==3417
(22 real changes made)

. replace offshore=59 if isco==3419
(0 real changes made)

. replace offshore=51 if isco==3432
(0 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=90 if isco==3460
(197 real changes made)

. replace offshore=54 if isco==4122
(0 real changes made)

. replace offshore=31 if isco==4131
(0 real changes made)

. replace offshore=67 if isco==4132
(0 real changes made)

. replace offshore=46 if isco==4141
(0 real changes made)

. replace offshore=26 if isco==4142
(0 real changes made)

. replace offshore=54 if isco==4222
(0 real changes made)

. replace offshore=68 if isco==7141
(139 real changes made)

. replace offshore=68 if isco==7224
(0 real changes made)

. replace offshore=65 if isco==7241
(121 real changes made)

. replace offshore=34 if isco==7344
(0 real changes made)

. replace offshore=72 if isco==7442
(0 real changes made)

. replace offshore=68 if isco==8122
(0 real changes made)

. replace offshore=68 if isco==8139
(0 real changes made)

. replace offshore=42 if isco==8161
(0 real changes made)

. replace offshore=68 if isco==8211
(0 real changes made)

. replace offshore=68 if isco==8223
(0 real changes made)

. replace offshore=41 if isco==8224
(0 real changes made)

. replace offshore=57 if isco==8240
(0 real changes made)

. replace offshore=58 if isco==8251
(0 real changes made)

. replace offshore=75 if isco==8269
(0 real changes made)

. replace offshore=66 if isco==8281
(0 real changes made)

. replace offshore=66 if isco==8283
(0 real changes made)

. replace offshore=68 if isco==8284
(0 real changes made)

. replace offshore=68 if isco==8290
(0 real changes made)

. replace offshore=70 if isco==9322
(0 real changes made)

. lab var offshore "Offshoring Potential (Blinder 2007), metric"

. 
. *** Creation of ordinal (4-point scale) offshoreability variable
. * Creation of variable
. gen offshore4=.
(28496 missing values generated)

. replace offshore4=4 if offshore<.
(28496 real changes made)

. replace offshore4=3 if offshore<75
(26312 real changes made)

. replace offshore4=2 if offshore<50
(21270 real changes made)

. replace offshore4=1 if offshore<25
(18811 real changes made)

. lab var offshore4 "Offshoring Potential (Blinder 2007), ordinal"

. * Definition of value label
. lab define offshore4 1 "0-24%" 2 "5-49%" 3 "50-74%" 4 "75-100%"

. lab values offshore4 offshore4

. 
. *** Creation of dichotomous offshoreability variable
. * Creation of variable
. gen offshore2=.
(28496 missing values generated)

. replace offshore2=1 if offshore>0 & offshore<.
(9685 real changes made)

. replace offshore2=0 if offshore==0
(18811 real changes made)

. lab var offshore2 "Offshoring Potential (Blinder 2007), dichotomous"

. * Definition of value label
. lab define offshore2 0 "Not offshoreable" 1 "Offshoreable"

. lab values offshore2 offshore2

. 
. ***********************
. 
. *** Creation of globalization loser variable 1 : low-skilled offshoreable
. * Creation of variable
. gen glob_losers1=.
(28496 missing values generated)

. replace glob_losers1=1 if offshore2==1 & educlvl<3
(2512 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl<3
(7713 real changes made)

. replace glob_losers1=0 if offshore2==1 & educlvl>2
(7173 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl>2
(11098 real changes made)

. lab var glob_losers1 "Globalization losers; lowskilled exposed "

. * Definition of value label
. lab define glob_losers1 1 "glob loser (l-s off)" 0 "not loser"

. lab values glob_losers1 glob_losers1

. 
. 
. *** Creation of winner variable 1: low-skilled sheltered
. * Creation of variable
. gen glob_winners1=.
(28496 missing values generated)

. replace glob_winners1 =0 if offshore2==1 & educlvl<3
(2512 real changes made)

. replace glob_winners1 =1 if offshore2==0 & educlvl<3
(7713 real changes made)

. replace glob_winners1 =0 if offshore2==1 & educlvl>2
(7173 real changes made)

. replace glob_winners1 =0 if offshore2==0 & educlvl>2
(11098 real changes made)

. lab var glob_winners1 "Globalization winners; lowskilled sheltered "

. * Definition of value label
. lab define glob_winners1 1 "glob winners (l-s sheltered)" 0 "not winner"

. lab values glob_winners1 glob_losers1

. 
. 
. ************************************
. *       1.2 MODERNIZATION LOSERS
. 
. * Oesch 16-classes for respondents only (according to syntax on his website)
. 
. ****************************************************************************************
. * Respondent's Oesch class position
. * Recode and create variables used to construct class variable for respondents
. * Variables used to construct class variable for respondents: iscoco, emplrel, emplno
. ****************************************************************************************
. 
. **** Recode occupation variable (isco88 com 4-digit) for respondents
. 
. tab iscoco

               Occupation, ISCO88 (com) |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                           Armed forces |         76        0.27        0.27
Legislators, senior officials and manag |         11        0.04        0.31
       Legislators and senior officials |          7        0.02        0.33
Legislators, senior government official |         28        0.10        0.43
Senior officials of special-interest or |          1        0.00        0.43
Senior officials of political-party org |          1        0.00        0.44
Senior officials of economic-interest o |          5        0.02        0.45
 Senior off human, special-interest org |          6        0.02        0.47
                     Corporate managers |         20        0.07        0.54
         Directors and chief executives |        186        0.65        1.20
     Production and operations managers |         49        0.17        1.37
Managers agriculture,hunting,forestry,f |          3        0.01        1.38
              Managers in manufacturing |        109        0.38        1.76
               Managers in construction |         52        0.18        1.94
 Managers in wholesale and retail trade |         56        0.20        2.14
     Managers in restaurants and hotels |         27        0.09        2.24
Managers transport,storage,communicatio |         56        0.20        2.43
Managers in business services enterpris |         34        0.12        2.55
Managers personal care,cleaning,rel ser |          5        0.02        2.57
      Managers not elsewhere classified |        114        0.40        2.97
              Other specialist managers |         40        0.14        3.11
   Finance and administration  managers |        177        0.62        3.73
Personnel and industrial relations mana |         75        0.26        3.99
           Sales and marketing managers |        138        0.48        4.48
Advertising and public relations manage |         20        0.07        4.55
      Supply and distribution  managers |         30        0.11        4.65
            Computing services managers |         61        0.21        4.87
      Research and development managers |         36        0.13        4.99
Oth spec managers not elsewhere classif |         87        0.31        5.30
          Managers of small enterprises |         29        0.10        5.40
          Managers of small enterprises |         19        0.07        5.47
Mngr small ent agr,hunting,forestry,fis |         55        0.19        5.66
        Mngr small ent in manufacturing |         47        0.16        5.83
         Mngr small ent in construction |         76        0.27        6.09
Mngr small ent wholesale and retail tra |        394        1.38        7.47
Mngr small ent of restaurants and hotel |        164        0.58        8.05
     Mngr small ent transp,storage,comm |         35        0.12        8.17
Mngr small ent of business serv enterpr |         85        0.30        8.47
Mngr small ent pers care,cleaning,rel s |         22        0.08        8.55
Mngr small ent not elsewhere classified |        107        0.38        8.92
                          Professionals |          9        0.03        8.96
Phys, mathem, engin science professiona |         14        0.05        9.00
             Physicists and astronomers |          4        0.01        9.02
                         Meteorologists |          2        0.01        9.03
                               Chemists |          9        0.03        9.06
           Geologists and geophysicists |          6        0.02        9.08
    Mathem, stat, related professionals |          2        0.01        9.09
Mathematicians and related professional |          8        0.03        9.11
                          Statisticians |          5        0.02        9.13
                Computing professionals |         68        0.24        9.37
Comp systems designers,analysts,program |        133        0.47        9.84
Comp professionals not elsewhere classi |         70        0.25       10.08
Architects,engineers,related profession |         12        0.04       10.12
  Architects, town and traffic planners |         80        0.28       10.40
                        Civil engineers |         60        0.21       10.62
                   Electrical engineers |         28        0.10       10.71
Electronics, telecommunications enginee |         28        0.10       10.81
                   Mechanical engineers |         67        0.24       11.05
                     Chemical engineers |         20        0.07       11.12
Mining engineers, metall,rel profession |         11        0.04       11.16
            Cartographers and surveyors |         10        0.04       11.19
Arch, engin,rel prof not elsewhere clas |        141        0.49       11.69
  Life science and health professionals |         14        0.05       11.73
             Life science professionals |          1        0.00       11.74
Biol,botan,zool and related professiona |         26        0.09       11.83
Pharm, pathol and related professionals |          6        0.02       11.85
  Agronomists and related professionals |         31        0.11       11.96
  Health professionals (except nursing) |          6        0.02       11.98
                        Medical doctors |        138        0.48       12.46
                               Dentists |         28        0.10       12.56
                          Veterinarians |         21        0.07       12.64
                            Pharmacists |         25        0.09       12.72
Health prof (not nursing) not elsew cla |         19        0.07       12.79
    Nursing and midwifery professionals |        153        0.54       13.33
                 Teaching professionals |         48        0.17       13.50
   Coll,univ, higher educ teaching prof |        157        0.55       14.05
Secondary education teaching profession |        416        1.46       15.51
Primary and pre-primary educ teaching p |         44        0.15       15.66
Primary education teaching professional |        287        1.01       16.67
Pre-primary educ teaching professionals |         29        0.10       16.77
Special education teaching professional |         35        0.12       16.89
           Other teaching professionals |         11        0.04       16.93
          Education methods specialists |         31        0.11       17.04
                      School inspectors |         14        0.05       17.09
Other teaching prof not elsewhere class |        172        0.60       17.69
                    Other professionals |         23        0.08       17.77
                 Business professionals |         18        0.06       17.84
                            Accountants |        123        0.43       18.27
    Personnel and careers professionals |        108        0.38       18.65
 Business prof not elsewhere classified |        198        0.69       19.34
                    Legal professionals |         19        0.07       19.41
                                Lawyers |         46        0.16       19.57
                                 Judges |         10        0.04       19.61
    Legal prof not elsewhere classified |         32        0.11       19.72
   Archiv,libr,related information prof |          3        0.01       19.73
                Archivists and curators |          9        0.03       19.76
    Librarians,related information prof |         17        0.06       19.82
Social science and related professional |          2        0.01       19.83
                             Economists |         51        0.18       20.01
Sociologists, anthropologists, rel prof |          8        0.03       20.03
Philosophers,historians,political scien |          7        0.02       20.06
Philologists, translators and interpret |         22        0.08       20.14
                          Psychologists |         43        0.15       20.29
              Social work professionals |         90        0.32       20.60
Writers and creative or performing arti |          6        0.02       20.62
 Authors, journalists and other writers |         78        0.27       20.90
Sculptors, painters and related artists |         45        0.16       21.06
       Composers, musicians and singers |         28        0.10       21.15
             Choreographers and dancers |          4        0.01       21.17
Film, stage and related actors and dire |         24        0.08       21.25
                Religious professionals |         36        0.13       21.38
Public service administrative professio |        115        0.40       21.78
Technicians and associate professionals |          1        0.00       21.79
Physical,engineering science associate  |         24        0.08       21.87
Physical,engineering science technician |         24        0.08       21.95
Chemical and physical science technicia |         38        0.13       22.09
          Civil engineering technicians |         77        0.27       22.36
     Electrical engineering technicians |         31        0.11       22.47
Electronics,telecom engineering technic |         51        0.18       22.65
     Mechanical engineering technicians |         64        0.22       22.87
       Chemical engineering technicians |         14        0.05       22.92
   Mining and metallurgical technicians |          5        0.02       22.94
                        Draughtspersons |         55        0.19       23.13
Phys, engin science techn not elsew cla |        113        0.40       23.53
       Computer associate professionals |         71        0.25       23.78
                    Computer assistants |         43        0.15       23.93
           Computer equipment operators |         40        0.14       24.07
           Industrial robot controllers |          1        0.00       24.07
 Photogr,image,sound rec equipment oper |         37        0.13       24.20
Broadcasting,telecom equipment operator |         11        0.04       24.24
            Medical equipment operators |         14        0.05       24.29
Optical,electr equipm oper not elsew cl |          6        0.02       24.31
Ship, aircraft controllers and technici |          1        0.00       24.31
                       Ships' engineers |          6        0.02       24.33
        Ships' deck officers and pilots |         19        0.07       24.40
Aircraft pilots, related associated pro |         14        0.05       24.45
                Air traffic controllers |          4        0.01       24.46
         Air traffic safety technicians |          5        0.02       24.48
          Safety and quality inspectors |          5        0.02       24.50
           Building and fire inspectors |          6        0.02       24.52
  Safety, health and quality inspectors |         92        0.32       24.84
 Life,science and health associate prof |         14        0.05       24.89
Life,science techn and rel associate pr |          2        0.01       24.90
               Life science technicians |         47        0.16       25.06
      Agronomy and forestry technicians |          9        0.03       25.09
          Farming and forestry advisers |          1        0.00       25.10
 Health associate prof (except nursing) |          6        0.02       25.12
                     Medical assistants |         22        0.08       25.20
Hygienists, health environmental office |          9        0.03       25.23
           Dieticians and nutritionists |          8        0.03       25.26
             Optometrists and opticians |         20        0.07       25.33
                      Dental assistants |         29        0.10       25.43
Physiotherapists and rel associate prof |        112        0.39       25.82
                  Veterinary assistants |         14        0.05       25.87
              Pharmaceutical assistants |         29        0.10       25.97
Health ass prof excpt nursing not else  |         38        0.13       26.11
       Nursing midwifery associate prof |          8        0.03       26.13
        Nursing associate professionals |        403        1.41       27.55
      Midwifery associate professionals |          8        0.03       27.58
       Teaching associate professionals |         20        0.07       27.65
Primary education teaching associate pr |         89        0.31       27.96
Pre-primary edu teaching associate prof |        110        0.39       28.34
Special education teaching associate pr |         26        0.09       28.44
 Other teaching associate professionals |        125        0.44       28.87
          Other associate professionals |         52        0.18       29.06
Finance and sales associate professiona |         59        0.21       29.26
Securities and finance dealers and brok |         15        0.05       29.32
              Insurance representatives |         67        0.24       29.55
                          Estate agents |         47        0.16       29.72
      Travel consultants and organisers |         11        0.04       29.76
     Technical and commercial sales rep |        284        1.00       30.75
                                 Buyers |         67        0.24       30.99
    Appraisers, valuers and auctioneers |         22        0.08       31.06
Finance,sales associate prof not else c |        192        0.67       31.74
Business services agents and trade brok |         13        0.05       31.78
                          Trade brokers |          5        0.02       31.80
         Clearing and forwarding agents |         13        0.05       31.85
Employment agents and labour contractor |         21        0.07       31.92
Busines,serv,agnts,trde brokr not else  |         25        0.09       32.01
 Administrative associate professionals |         95        0.33       32.34
Adm secretaries, related associate prof |        313        1.10       33.44
  Legal related business associate prof |         87        0.31       33.75
                            Bookkeepers |        151        0.53       34.27
Statistical, mathemat rel associate pro |          4        0.01       34.29
  Custom,tax,related gov associate prof |          4        0.01       34.30
          Customs and border inspectors |          9        0.03       34.33
    Government tax and excise officials |         21        0.07       34.41
   Government social benefits officials |         23        0.08       34.49
         Government licensing officials |          7        0.02       34.51
Custom,tax,rel gov assoc prof not else  |         40        0.14       34.65
       Police inspectors and detectives |         46        0.16       34.82
    Social work associate professionals |        197        0.69       35.51
Artistic,entertainment,sports associate |         15        0.05       35.56
    Decorators and commercial designers |         97        0.34       35.90
 Radio, television and other announcers |          3        0.01       35.91
Street,nightclub,rel musicians,singers, |         16        0.06       35.97
Clowns,magicians,acrobats, rel associat |          1        0.00       35.97
Athletes,sportspers, related associate  |         55        0.19       36.16
      Religious associate professionals |         10        0.04       36.20
                                 Clerks |         98        0.34       36.54
                          Office clerks |         84        0.29       36.84
Secretaries and keyboard-operating cler |         98        0.34       37.18
              Stenographers and typists |         15        0.05       37.23
   Word-processor and related operators |          7        0.02       37.26
                   Data entry operators |         23        0.08       37.34
          Calculating-machine operators |          4        0.01       37.35
                            Secretaries |        387        1.36       38.71
                       Numerical clerks |         67        0.24       38.95
      Accounting and bookkeeping clerks |        253        0.89       39.83
         Statistical and finance clerks |        119        0.42       40.25
Material-recording and transport clerks |         12        0.04       40.29
                           Stock clerks |        214        0.75       41.04
                      Production clerks |        107        0.38       41.42
                       Transport clerks |         81        0.28       41.70
       Library, mail and related clerks |          4        0.01       41.72
              Library and filing clerks |         56        0.20       41.91
       Mail carriers and sorting clerks |        121        0.42       42.34
Coding, proof-reading and related clerk |          2        0.01       42.35
                    Other office clerks |        481        1.69       44.03
               Customer services clerks |         22        0.08       44.11
   Cashiers, tellers and related clerks |         28        0.10       44.21
             Cashiers and ticket clerks |        124        0.44       44.64
       Tellers and other counter clerks |         71        0.25       44.89
               Bookmakers and croupiers |          4        0.01       44.91
    Debt-collectors and related workers |          7        0.02       44.93
              Client information clerks |         35        0.12       45.06
       Travel agency and related clerks |         21        0.07       45.13
   Receptionists and information clerks |        155        0.54       45.67
        Telephone switchboard operators |         90        0.32       45.99
                                   4290 |          3        0.01       46.00
Service workers,shop, market sales work |          1        0.00       46.00
Personal and protective services worker |         16        0.06       46.06
  Travel attendants and travel stewards |         21        0.07       46.13
                   Transport conductors |         13        0.05       46.18
                          Travel guides |         11        0.04       46.22
Housekeeping, restaurant services worke |         18        0.06       46.28
       Housekeepers and related workers |         55        0.19       46.47
                                  Cooks |        312        1.09       47.57
     Waiters, waitresses and bartenders |        444        1.56       49.13
      Personal care and related workers |         32        0.11       49.24
                     Child-care workers |        283        0.99       50.23
Institution-based personal care workers |        487        1.71       51.94
       Home-based personal care workers |        339        1.19       53.13
Personal care,related workers not else  |         80        0.28       53.41
        Other personal services workers |          3        0.01       53.42
Hairdress,barber,beautician, related wo |        253        0.89       54.31
                  Companions and valets |         12        0.04       54.35
              Undertakers and embalmers |          8        0.03       54.38
Other pers service workers not else cla |         55        0.19       54.57
            Protective services workers |          9        0.03       54.60
                          Fire-fighters |         20        0.07       54.67
                        Police officers |         73        0.26       54.93
                          Prison guards |         23        0.08       55.01
Protective services workers not else cl |         60        0.21       55.22
 Models, salespersons and demonstrators |          8        0.03       55.25
Shop,stall,market salespers, demonstrat |      1,469        5.16       60.40
Skilled agricultural and fishery worker |        154        0.54       60.95
       Field crop and vegetable growers |        129        0.45       61.40
Gardeners, horticultural, nursery growe |        157        0.55       61.95
   Animal producers and related workers |         10        0.04       61.98
          Dairy and livestock producers |        132        0.46       62.45
                      Poultry producers |          5        0.02       62.46
Animal prod, related workers not else c |          8        0.03       62.49
              Crop and animal producers |        305        1.07       63.56
           Forestry and related workers |         16        0.06       63.62
           Forestry workers and loggers |         17        0.06       63.68
  Fishery workers, hunters and trappers |          5        0.02       63.70
       Aquatic-life cultivation workers |          8        0.03       63.72
Inland and coastal waters fishery worke |         12        0.04       63.77
               Deep-sea fishery workers |          8        0.03       63.79
       Craft and related trades workers |         12        0.04       63.84
 Extraction and building trades workers |         15        0.05       63.89
              Miners and quarry workers |         19        0.07       63.96
                Shotfirers and blasters |          2        0.01       63.96
   Stone splitters, cutters and carvers |          5        0.02       63.98
Building frame and related trades worke |         25        0.09       64.07
                               Builders |         44        0.15       64.22
            Bricklayers and stonemasons |        273        0.96       65.18
Concrete placer,concrete finisher, rel  |         39        0.14       65.32
                 Carpenters and joiners |        189        0.66       65.98
Build frame, rel trade worker not else  |         64        0.22       66.21
Build finishers, related trades workers |          1        0.00       66.21
                                Roofers |         20        0.07       66.28
          Floor layers and tile setters |         26        0.09       66.37
                             Plasterers |         25        0.09       66.46
                     Insulation workers |         20        0.07       66.53
                               Glaziers |          6        0.02       66.55
              Plumbers and pipe fitters |        149        0.52       67.07
      Building and related electricians |        124        0.44       67.51
Build finisher,rel trde work not else c |         13        0.05       67.55
Painter,building struct cleaner,rel trd |          3        0.01       67.56
           Painters and related workers |        139        0.49       68.05
            Building structure cleaners |         11        0.04       68.09
Metal, machinery related trades workers |         23        0.08       68.17
Metalm,welder,sheetmet,structmet prep,r |          8        0.03       68.20
          Metal moulders and coremakers |         16        0.06       68.26
               Welders and flamecutters |         85        0.30       68.55
                    Sheet-metal workers |         45        0.16       68.71
Structural-metal preparers and erectors |         30        0.11       68.82
             Riggers and cable splicers |          3        0.01       68.83
                     Underwater workers |          1        0.00       68.83
Blacksmiths,tool-makers,related trad wo |          5        0.02       68.85
Blacksmith, hammer-smith,forging-press  |         32        0.11       68.96
        Tool-makers and related workers |         43        0.15       69.11
Machine-tool setters and setter-operato |         90        0.32       69.43
Metal wheelgrinder, polisher, tool shar |         11        0.04       69.47
        Machinery mechanics and fitters |         54        0.19       69.66
    Motor vehicle mechanics and fitters |        204        0.72       70.37
  Aircraft engine mechanics and fitters |         14        0.05       70.42
Agric- or industrmachine mechanic and f |         86        0.30       70.72
Electric,electronic equip mech and fitt |         16        0.06       70.78
Electric mechanic, fitters and servicer |        121        0.42       71.20
Electronic mecanic, fitters and service |         47        0.16       71.37
Telegraph, teleph installers and servic |         26        0.09       71.46
Electric line install,repairer,cable jo |         26        0.09       71.55
Precision,handicraft,printing,rel trade |         13        0.05       71.60
Precision-instrument makers and repaire |         36        0.13       71.72
   Musical instrument makers and tuners |          3        0.01       71.73
   Jewellery and precious-metal workers |         14        0.05       71.78
Potters,glass-makers, related trades wo |          1        0.00       71.79
Abrasive wheel former,potter and rel wo |         11        0.04       71.82
Glass-makers,cutters,grinders and finis |         11        0.04       71.86
Glass,ceramics and rel decorative paint |         10        0.04       71.90
Handicrft work wood,textile,leather,rel |          2        0.01       71.90
Handicrft work in wood and related mate |         10        0.04       71.94
Handicrft work in textile,leather,rel m |          2        0.01       71.95
Craft printing and related trades worke |          5        0.02       71.96
Compositors,typesetters, related worker |         20        0.07       72.03
         Stereotypers and electrotypers |          4        0.01       72.05
         Printing engravers and etchers |         10        0.04       72.08
       Photographic and related workers |          8        0.03       72.11
        Bookbinders and related workers |          7        0.02       72.14
Silk-screen,block,craft textile printer |          5        0.02       72.15
 Other craft and related trades workers |         20        0.07       72.22
Butchers,fishmongers,related food prepa |         60        0.21       72.43
Bakers,pastry-cooks,confectionery maker |         75        0.26       72.70
                 Dairy products workers |          5        0.02       72.72
Fruit, vegetable and related preservers |          4        0.01       72.73
Tobacco preparers,tobacco products make |          1        0.00       72.73
                          Wood treaters |          7        0.02       72.76
      Cabinetmakers and related workers |         67        0.24       72.99
Woodworking machine setter,setter-opera |          8        0.03       73.02
Basketry weavers,brush makers,rel worke |          1        0.00       73.02
 Textile,garment, related trades worker |          6        0.02       73.05
                        Fibre preparers |          6        0.02       73.07
  Weavers, knitters and related workers |         11        0.04       73.10
       Tailors, dressmakers and hatters |         84        0.29       73.40
Textile,leather,rel patternmakers, cutt |         10        0.04       73.43
Sewers, embroiderers and related worker |        120        0.42       73.86
       Upholsterers and related workers |         17        0.06       73.92
 Pelt dressers, tanners and fellmongers |          8        0.03       73.94
        Shoe-makers and related workers |         24        0.08       74.03
Plant and machine operators and assembl |          4        0.01       74.04
 Stationary plant and related operators |         20        0.07       74.11
Mining, mineral-processing-plant operat |          2        0.01       74.12
                 Mining plant operators |          3        0.01       74.13
Mineralore,stone-processing-plant opera |          7        0.02       74.15
Well drillers,borers and related worker |          4        0.01       74.17
        Ore and metal furnace operators |         11        0.04       74.21
Metal melters,casters,rolling-mill oper |          4        0.01       74.22
    Metal-heat-treating-plant operators |          3        0.01       74.23
Glass,ceramics kiln,related machine ope |          7        0.02       74.26
Glass,ceramic,rel plant operat not else |          3        0.01       74.27
Wood-processing, papermaking-plant oper |         13        0.05       74.31
        Wood-processing-plant operators |         29        0.10       74.41
             Paper-pulp plant operators |          3        0.01       74.42
            Papermaking-plant operators |         20        0.07       74.49
    Chemical-processing-plant operators |         17        0.06       74.55
 Chemical-heat-treating-plant operators |          3        0.01       74.56
Petrol,natural gas refin plant operator |          4        0.01       74.58
Chemicalprocess,plant operat not else c |          8        0.03       74.61
Power-Prod. and related plant operators |          1        0.00       74.61
       Power-production plant operators |         13        0.05       74.66
      Steam-engine and boiler operators |         13        0.05       74.70
Incinerator,watertreatment,rel plant op |          8        0.03       74.73
             Industrial robot operators |          5        0.02       74.75
       Machine operators and assemblers |         74        0.26       75.01
 Metal,mineralproducts machine operator |          2        0.01       75.01
                 Machine-tool operators |         61        0.21       75.23
Cement, other mineral prod machine oper |          9        0.03       75.26
Pharmaceutical,toiletry-prod machine op |          5        0.02       75.28
Ammunition,explosive products machine o |          4        0.01       75.29
Metal finish, plating,coatingmachine op |         15        0.05       75.34
Photographic-products machine operators |          4        0.01       75.36
Chemicalprod, machine operat not else c |         10        0.04       75.39
      Rubber-products machine operators |          3        0.01       75.40
     Plastic-products machine operators |         44        0.15       75.56
        Wood-products machine operators |          9        0.03       75.59
Printing,binding,paperprod machine oper |          2        0.01       75.60
             Printing-machine operators |         32        0.11       75.71
          Bookbinding-machine operators |          9        0.03       75.74
       Paper-products machine operators |         15        0.05       75.79
Textile,fur,leatherprod machine operato |          9        0.03       75.82
Fibreprep,spinning winding-machine oper |         20        0.07       75.89
Weaving- and knitting-machine operators |         33        0.12       76.01
               Sewing-machine operators |         64        0.22       76.24
Bleaching,dyeing,cleaning-machine opera |         23        0.08       76.32
         Fur,leatherprep machine operat |          1        0.00       76.32
Shoemaking- and related machine operato |         17        0.06       76.38
Textl,fur,leatherprod mach operat n els |         25        0.09       76.47
 Food,related products machine operator |         13        0.05       76.51
     Meat, fishprocess machine operator |         34        0.12       76.63
       Dairy-products machine operators |          8        0.03       76.66
Grain- and spice-milling-machine operat |          6        0.02       76.68
Baked g,cereal,chocolateprod machine op |         24        0.08       76.77
Fruit,vegetable,nutprocess-machine oper |          5        0.02       76.78
     Sugar production machine operators |          1        0.00       76.79
Brewer,wine, other beverage machine ope |          8        0.03       76.81
   Tobacco production machine operators |          2        0.01       76.82
                             Assemblers |         28        0.10       76.92
        Mechanical-machinery assemblers |         49        0.17       77.09
        Electrical-equipment assemblers |         35        0.12       77.21
        Electronic-equipment assemblers |         20        0.07       77.28
   Metal,rubber,plastic-prod assemblers |         15        0.05       77.34
   Wood and related products assemblers |         13        0.05       77.38
Paperboard,textile, related prod assemb |          1        0.00       77.39
          Composite products assemblers |          2        0.01       77.39
    Other machine operat not else class |         95        0.33       77.73
     Drivers and mobile plant operators |         13        0.05       77.77
Locomotive engine drivers,related worke |          1        0.00       77.78
              Locomotive engine drivers |         31        0.11       77.88
Railway brakers, signallers and shunter |         20        0.07       77.95
                  Motor vehicle drivers |         10        0.04       77.99
                     Motorcycle drivers |          1        0.00       77.99
              Car, taxi and van drivers |        217        0.76       78.75
                   Bus and tram drivers |         99        0.35       79.10
          Heavy truck and lorry drivers |        287        1.01       80.11
Agricultural,other mobile plant operato |          7        0.02       80.13
Motorised farm, forestry plant operator |         20        0.07       80.20
Earth-moving  and related plant operato |         56        0.20       80.40
Crane, hoist and related plant operator |         49        0.17       80.57
                Lifting-truck operators |         59        0.21       80.78
  Ships' deck crews and related workers |         19        0.07       80.85
                 Elementary occupations |         23        0.08       80.93
Sales and services elementary occupatio |         25        0.09       81.01
                         Street vendors |          8        0.03       81.04
Door-to-door and telephone salespersons |         36        0.13       81.17
Shoe cleaning,other streetserv element  |          1        0.00       81.17
Domestic,related helpers,cleaner,launde |        136        0.48       81.65
          Domestic helpers and cleaners |        329        1.15       82.80
Helper,cleaner in office,hotel,other es |        775        2.72       85.52
           Hand-launderers and pressers |         44        0.15       85.68
                    Building caretakers |        151        0.53       86.21
   Vehicle, window and related cleaners |         14        0.05       86.26
Messengers,porters doorkeepers,rel work |          3        0.01       86.27
Messengers,package,luggage porter, deli |        117        0.41       86.68
Doorkeepers,watchpersons,related worker |        118        0.41       87.09
Vendingm,money collect, meter reader,re |          2        0.01       87.10
Garbage collectors and related labourer |          5        0.02       87.12
                     Garbage collectors |         10        0.04       87.15
         Sweepers and related labourers |         40        0.14       87.29
 Agricultural,fishery,related labourers |          5        0.02       87.31
 Agricultural,fishery,related labourers |         15        0.05       87.36
               Farm-hands and labourers |        150        0.53       87.89
                     Forestry labourers |          4        0.01       87.90
Fishery, hunting and trapping labourers |          4        0.01       87.92
Labourer mining,construction,manufact,t |          9        0.03       87.95
      Mining and construction labourers |          5        0.02       87.97
         Mining and quarrying labourers |         10        0.04       88.00
Constr,mainten labour: roads,dams,sim c |        113        0.40       88.40
        Building construction labourers |        110        0.39       88.78
                Manufacturing labourers |        239        0.84       89.62
Transport laborers and freight handlers |        177        0.62       90.24
                         Not applicable |      2,410        8.46       98.70
                                Refusal |         39        0.14       98.84
                             Don't know |        162        0.57       99.41
                              No answer |        169        0.59      100.00
----------------------------------------+-----------------------------------
                                  Total |     28,496      100.00

. 
. recode iscoco (missing=-9), copyrest gen(isco_mainjob)
(0 differences between iscoco and isco_mainjob)

. label variable isco_mainjob "Current occupation of respondent - isco88 4-digit"

. tab isco_mainjob

    Current |
 occupation |
         of |
 respondent |
   - isco88 |
    4-digit |      Freq.     Percent        Cum.
------------+-----------------------------------
        100 |         76        0.27        0.27
       1000 |         11        0.04        0.31
       1100 |          7        0.02        0.33
       1110 |         28        0.10        0.43
       1140 |          1        0.00        0.43
       1141 |          1        0.00        0.44
       1142 |          5        0.02        0.45
       1143 |          6        0.02        0.47
       1200 |         20        0.07        0.54
       1210 |        186        0.65        1.20
       1220 |         49        0.17        1.37
       1221 |          3        0.01        1.38
       1222 |        109        0.38        1.76
       1223 |         52        0.18        1.94
       1224 |         56        0.20        2.14
       1225 |         27        0.09        2.24
       1226 |         56        0.20        2.43
       1227 |         34        0.12        2.55
       1228 |          5        0.02        2.57
       1229 |        114        0.40        2.97
       1230 |         40        0.14        3.11
       1231 |        177        0.62        3.73
       1232 |         75        0.26        3.99
       1233 |        138        0.48        4.48
       1234 |         20        0.07        4.55
       1235 |         30        0.11        4.65
       1236 |         61        0.21        4.87
       1237 |         36        0.13        4.99
       1239 |         87        0.31        5.30
       1300 |         29        0.10        5.40
       1310 |         19        0.07        5.47
       1311 |         55        0.19        5.66
       1312 |         47        0.16        5.83
       1313 |         76        0.27        6.09
       1314 |        394        1.38        7.47
       1315 |        164        0.58        8.05
       1316 |         35        0.12        8.17
       1317 |         85        0.30        8.47
       1318 |         22        0.08        8.55
       1319 |        107        0.38        8.92
       2000 |          9        0.03        8.96
       2100 |         14        0.05        9.00
       2111 |          4        0.01        9.02
       2112 |          2        0.01        9.03
       2113 |          9        0.03        9.06
       2114 |          6        0.02        9.08
       2120 |          2        0.01        9.09
       2121 |          8        0.03        9.11
       2122 |          5        0.02        9.13
       2130 |         68        0.24        9.37
       2131 |        133        0.47        9.84
       2139 |         70        0.25       10.08
       2140 |         12        0.04       10.12
       2141 |         80        0.28       10.40
       2142 |         60        0.21       10.62
       2143 |         28        0.10       10.71
       2144 |         28        0.10       10.81
       2145 |         67        0.24       11.05
       2146 |         20        0.07       11.12
       2147 |         11        0.04       11.16
       2148 |         10        0.04       11.19
       2149 |        141        0.49       11.69
       2200 |         14        0.05       11.73
       2210 |          1        0.00       11.74
       2211 |         26        0.09       11.83
       2212 |          6        0.02       11.85
       2213 |         31        0.11       11.96
       2220 |          6        0.02       11.98
       2221 |        138        0.48       12.46
       2222 |         28        0.10       12.56
       2223 |         21        0.07       12.64
       2224 |         25        0.09       12.72
       2229 |         19        0.07       12.79
       2230 |        153        0.54       13.33
       2300 |         48        0.17       13.50
       2310 |        157        0.55       14.05
       2320 |        416        1.46       15.51
       2330 |         44        0.15       15.66
       2331 |        287        1.01       16.67
       2332 |         29        0.10       16.77
       2340 |         35        0.12       16.89
       2350 |         11        0.04       16.93
       2351 |         31        0.11       17.04
       2352 |         14        0.05       17.09
       2359 |        172        0.60       17.69
       2400 |         23        0.08       17.77
       2410 |         18        0.06       17.84
       2411 |        123        0.43       18.27
       2412 |        108        0.38       18.65
       2419 |        198        0.69       19.34
       2420 |         19        0.07       19.41
       2421 |         46        0.16       19.57
       2422 |         10        0.04       19.61
       2429 |         32        0.11       19.72
       2430 |          3        0.01       19.73
       2431 |          9        0.03       19.76
       2432 |         17        0.06       19.82
       2440 |          2        0.01       19.83
       2441 |         51        0.18       20.01
       2442 |          8        0.03       20.03
       2443 |          7        0.02       20.06
       2444 |         22        0.08       20.14
       2445 |         43        0.15       20.29
       2446 |         90        0.32       20.60
       2450 |          6        0.02       20.62
       2451 |         78        0.27       20.90
       2452 |         45        0.16       21.06
       2453 |         28        0.10       21.15
       2454 |          4        0.01       21.17
       2455 |         24        0.08       21.25
       2460 |         36        0.13       21.38
       2470 |        115        0.40       21.78
       3000 |          1        0.00       21.79
       3100 |         24        0.08       21.87
       3110 |         24        0.08       21.95
       3111 |         38        0.13       22.09
       3112 |         77        0.27       22.36
       3113 |         31        0.11       22.47
       3114 |         51        0.18       22.65
       3115 |         64        0.22       22.87
       3116 |         14        0.05       22.92
       3117 |          5        0.02       22.94
       3118 |         55        0.19       23.13
       3119 |        113        0.40       23.53
       3120 |         71        0.25       23.78
       3121 |         43        0.15       23.93
       3122 |         40        0.14       24.07
       3123 |          1        0.00       24.07
       3131 |         37        0.13       24.20
       3132 |         11        0.04       24.24
       3133 |         14        0.05       24.29
       3139 |          6        0.02       24.31
       3140 |          1        0.00       24.31
       3141 |          6        0.02       24.33
       3142 |         19        0.07       24.40
       3143 |         14        0.05       24.45
       3144 |          4        0.01       24.46
       3145 |          5        0.02       24.48
       3150 |          5        0.02       24.50
       3151 |          6        0.02       24.52
       3152 |         92        0.32       24.84
       3200 |         14        0.05       24.89
       3210 |          2        0.01       24.90
       3211 |         47        0.16       25.06
       3212 |          9        0.03       25.09
       3213 |          1        0.00       25.10
       3220 |          6        0.02       25.12
       3221 |         22        0.08       25.20
       3222 |          9        0.03       25.23
       3223 |          8        0.03       25.26
       3224 |         20        0.07       25.33
       3225 |         29        0.10       25.43
       3226 |        112        0.39       25.82
       3227 |         14        0.05       25.87
       3228 |         29        0.10       25.97
       3229 |         38        0.13       26.11
       3230 |          8        0.03       26.13
       3231 |        403        1.41       27.55
       3232 |          8        0.03       27.58
       3300 |         20        0.07       27.65
       3310 |         89        0.31       27.96
       3320 |        110        0.39       28.34
       3330 |         26        0.09       28.44
       3340 |        125        0.44       28.87
       3400 |         52        0.18       29.06
       3410 |         59        0.21       29.26
       3411 |         15        0.05       29.32
       3412 |         67        0.24       29.55
       3413 |         47        0.16       29.72
       3414 |         11        0.04       29.76
       3415 |        284        1.00       30.75
       3416 |         67        0.24       30.99
       3417 |         22        0.08       31.06
       3419 |        192        0.67       31.74
       3420 |         13        0.05       31.78
       3421 |          5        0.02       31.80
       3422 |         13        0.05       31.85
       3423 |         21        0.07       31.92
       3429 |         25        0.09       32.01
       3430 |         95        0.33       32.34
       3431 |        313        1.10       33.44
       3432 |         87        0.31       33.75
       3433 |        151        0.53       34.27
       3434 |          4        0.01       34.29
       3440 |          4        0.01       34.30
       3441 |          9        0.03       34.33
       3442 |         21        0.07       34.41
       3443 |         23        0.08       34.49
       3444 |          7        0.02       34.51
       3449 |         40        0.14       34.65
       3450 |         46        0.16       34.82
       3460 |        197        0.69       35.51
       3470 |         15        0.05       35.56
       3471 |         97        0.34       35.90
       3472 |          3        0.01       35.91
       3473 |         16        0.06       35.97
       3474 |          1        0.00       35.97
       3475 |         55        0.19       36.16
       3480 |         10        0.04       36.20
       4000 |         98        0.34       36.54
       4100 |         84        0.29       36.84
       4110 |         98        0.34       37.18
       4111 |         15        0.05       37.23
       4112 |          7        0.02       37.26
       4113 |         23        0.08       37.34
       4114 |          4        0.01       37.35
       4115 |        387        1.36       38.71
       4120 |         67        0.24       38.95
       4121 |        253        0.89       39.83
       4122 |        119        0.42       40.25
       4130 |         12        0.04       40.29
       4131 |        214        0.75       41.04
       4132 |        107        0.38       41.42
       4133 |         81        0.28       41.70
       4140 |          4        0.01       41.72
       4141 |         56        0.20       41.91
       4142 |        121        0.42       42.34
       4143 |          2        0.01       42.35
       4190 |        481        1.69       44.03
       4200 |         22        0.08       44.11
       4210 |         28        0.10       44.21
       4211 |        124        0.44       44.64
       4212 |         71        0.25       44.89
       4213 |          4        0.01       44.91
       4215 |          7        0.02       44.93
       4220 |         35        0.12       45.06
       4221 |         21        0.07       45.13
       4222 |        155        0.54       45.67
       4223 |         90        0.32       45.99
       4290 |          3        0.01       46.00
       5000 |          1        0.00       46.00
       5100 |         16        0.06       46.06
       5111 |         21        0.07       46.13
       5112 |         13        0.05       46.18
       5113 |         11        0.04       46.22
       5120 |         18        0.06       46.28
       5121 |         55        0.19       46.47
       5122 |        312        1.09       47.57
       5123 |        444        1.56       49.13
       5130 |         32        0.11       49.24
       5131 |        283        0.99       50.23
       5132 |        487        1.71       51.94
       5133 |        339        1.19       53.13
       5139 |         80        0.28       53.41
       5140 |          3        0.01       53.42
       5141 |        253        0.89       54.31
       5142 |         12        0.04       54.35
       5143 |          8        0.03       54.38
       5149 |         55        0.19       54.57
       5160 |          9        0.03       54.60
       5161 |         20        0.07       54.67
       5162 |         73        0.26       54.93
       5163 |         23        0.08       55.01
       5169 |         60        0.21       55.22
       5200 |          8        0.03       55.25
       5220 |      1,469        5.16       60.40
       6100 |        154        0.54       60.95
       6111 |        129        0.45       61.40
       6112 |        157        0.55       61.95
       6120 |         10        0.04       61.98
       6121 |        132        0.46       62.45
       6122 |          5        0.02       62.46
       6129 |          8        0.03       62.49
       6130 |        305        1.07       63.56
       6140 |         16        0.06       63.62
       6141 |         17        0.06       63.68
       6150 |          5        0.02       63.70
       6151 |          8        0.03       63.72
       6152 |         12        0.04       63.77
       6153 |          8        0.03       63.79
       7000 |         12        0.04       63.84
       7100 |         15        0.05       63.89
       7111 |         19        0.07       63.96
       7112 |          2        0.01       63.96
       7113 |          5        0.02       63.98
       7120 |         25        0.09       64.07
       7121 |         44        0.15       64.22
       7122 |        273        0.96       65.18
       7123 |         39        0.14       65.32
       7124 |        189        0.66       65.98
       7129 |         64        0.22       66.21
       7130 |          1        0.00       66.21
       7131 |         20        0.07       66.28
       7132 |         26        0.09       66.37
       7133 |         25        0.09       66.46
       7134 |         20        0.07       66.53
       7135 |          6        0.02       66.55
       7136 |        149        0.52       67.07
       7137 |        124        0.44       67.51
       7139 |         13        0.05       67.55
       7140 |          3        0.01       67.56
       7141 |        139        0.49       68.05
       7143 |         11        0.04       68.09
       7200 |         23        0.08       68.17
       7210 |          8        0.03       68.20
       7211 |         16        0.06       68.26
       7212 |         85        0.30       68.55
       7213 |         45        0.16       68.71
       7214 |         30        0.11       68.82
       7215 |          3        0.01       68.83
       7216 |          1        0.00       68.83
       7220 |          5        0.02       68.85
       7221 |         32        0.11       68.96
       7222 |         43        0.15       69.11
       7223 |         90        0.32       69.43
       7224 |         11        0.04       69.47
       7230 |         54        0.19       69.66
       7231 |        204        0.72       70.37
       7232 |         14        0.05       70.42
       7233 |         86        0.30       70.72
       7240 |         16        0.06       70.78
       7241 |        121        0.42       71.20
       7242 |         47        0.16       71.37
       7244 |         26        0.09       71.46
       7245 |         26        0.09       71.55
       7300 |         13        0.05       71.60
       7311 |         36        0.13       71.72
       7312 |          3        0.01       71.73
       7313 |         14        0.05       71.78
       7320 |          1        0.00       71.79
       7321 |         11        0.04       71.82
       7322 |         11        0.04       71.86
       7324 |         10        0.04       71.90
       7330 |          2        0.01       71.90
       7331 |         10        0.04       71.94
       7332 |          2        0.01       71.95
       7340 |          5        0.02       71.96
       7341 |         20        0.07       72.03
       7342 |          4        0.01       72.05
       7343 |         10        0.04       72.08
       7344 |          8        0.03       72.11
       7345 |          7        0.02       72.14
       7346 |          5        0.02       72.15
       7400 |         20        0.07       72.22
       7411 |         60        0.21       72.43
       7412 |         75        0.26       72.70
       7413 |          5        0.02       72.72
       7414 |          4        0.01       72.73
       7416 |          1        0.00       72.73
       7421 |          7        0.02       72.76
       7422 |         67        0.24       72.99
       7423 |          8        0.03       73.02
       7424 |          1        0.00       73.02
       7430 |          6        0.02       73.05
       7431 |          6        0.02       73.07
       7432 |         11        0.04       73.10
       7433 |         84        0.29       73.40
       7435 |         10        0.04       73.43
       7436 |        120        0.42       73.86
       7437 |         17        0.06       73.92
       7441 |          8        0.03       73.94
       7442 |         24        0.08       74.03
       8000 |          4        0.01       74.04
       8100 |         20        0.07       74.11
       8110 |          2        0.01       74.12
       8111 |          3        0.01       74.13
       8112 |          7        0.02       74.15
       8113 |          4        0.01       74.17
       8121 |         11        0.04       74.21
       8122 |          4        0.01       74.22
       8123 |          3        0.01       74.23
       8131 |          7        0.02       74.26
       8139 |          3        0.01       74.27
       8140 |         13        0.05       74.31
       8141 |         29        0.10       74.41
       8142 |          3        0.01       74.42
       8143 |         20        0.07       74.49
       8150 |         17        0.06       74.55
       8152 |          3        0.01       74.56
       8155 |          4        0.01       74.58
       8159 |          8        0.03       74.61
       8160 |          1        0.00       74.61
       8161 |         13        0.05       74.66
       8162 |         13        0.05       74.70
       8163 |          8        0.03       74.73
       8170 |          5        0.02       74.75
       8200 |         74        0.26       75.01
       8210 |          2        0.01       75.01
       8211 |         61        0.21       75.23
       8212 |          9        0.03       75.26
       8221 |          5        0.02       75.28
       8222 |          4        0.01       75.29
       8223 |         15        0.05       75.34
       8224 |          4        0.01       75.36
       8229 |         10        0.04       75.39
       8231 |          3        0.01       75.40
       8232 |         44        0.15       75.56
       8240 |          9        0.03       75.59
       8250 |          2        0.01       75.60
       8251 |         32        0.11       75.71
       8252 |          9        0.03       75.74
       8253 |         15        0.05       75.79
       8260 |          9        0.03       75.82
       8261 |         20        0.07       75.89
       8262 |         33        0.12       76.01
       8263 |         64        0.22       76.24
       8264 |         23        0.08       76.32
       8265 |          1        0.00       76.32
       8266 |         17        0.06       76.38
       8269 |         25        0.09       76.47
       8270 |         13        0.05       76.51
       8271 |         34        0.12       76.63
       8272 |          8        0.03       76.66
       8273 |          6        0.02       76.68
       8274 |         24        0.08       76.77
       8275 |          5        0.02       76.78
       8276 |          1        0.00       76.79
       8278 |          8        0.03       76.81
       8279 |          2        0.01       76.82
       8280 |         28        0.10       76.92
       8281 |         49        0.17       77.09
       8282 |         35        0.12       77.21
       8283 |         20        0.07       77.28
       8284 |         15        0.05       77.34
       8285 |         13        0.05       77.38
       8286 |          1        0.00       77.39
       8287 |          2        0.01       77.39
       8290 |         95        0.33       77.73
       8300 |         13        0.05       77.77
       8310 |          1        0.00       77.78
       8311 |         31        0.11       77.88
       8312 |         20        0.07       77.95
       8320 |         10        0.04       77.99
       8321 |          1        0.00       77.99
       8322 |        217        0.76       78.75
       8323 |         99        0.35       79.10
       8324 |        287        1.01       80.11
       8330 |          7        0.02       80.13
       8331 |         20        0.07       80.20
       8332 |         56        0.20       80.40
       8333 |         49        0.17       80.57
       8334 |         59        0.21       80.78
       8340 |         19        0.07       80.85
       9000 |         23        0.08       80.93
       9100 |         25        0.09       81.01
       9111 |          8        0.03       81.04
       9113 |         36        0.13       81.17
       9120 |          1        0.00       81.17
       9130 |        136        0.48       81.65
       9131 |        329        1.15       82.80
       9132 |        775        2.72       85.52
       9133 |         44        0.15       85.68
       9141 |        151        0.53       86.21
       9142 |         14        0.05       86.26
       9150 |          3        0.01       86.27
       9151 |        117        0.41       86.68
       9152 |        118        0.41       87.09
       9153 |          2        0.01       87.10
       9160 |          5        0.02       87.12
       9161 |         10        0.04       87.15
       9162 |         40        0.14       87.29
       9200 |          5        0.02       87.31
       9210 |         15        0.05       87.36
       9211 |        150        0.53       87.89
       9212 |          4        0.01       87.90
       9213 |          4        0.01       87.92
       9300 |          9        0.03       87.95
       9310 |          5        0.02       87.97
       9311 |         10        0.04       88.00
       9312 |        113        0.40       88.40
       9313 |        110        0.39       88.78
       9320 |        239        0.84       89.62
       9330 |        177        0.62       90.24
      66666 |      2,410        8.46       98.70
      77777 |         39        0.14       98.84
      88888 |        162        0.57       99.41
      99999 |        169        0.59      100.00
------------+-----------------------------------
      Total |     28,496      100.00

. 
. **** Recode employment status for respondents
. 
. tab emplrel

            Employment relation |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     22,168       77.79       77.79
                  Self-employed |      3,429       12.03       89.83
Working for own family business |        411        1.44       91.27
                 Not applicable |      2,410        8.46       99.73
                        Refusal |         13        0.05       99.77
                     Don't know |         38        0.13       99.91
                      No answer |         27        0.09      100.00
--------------------------------+-----------------------------------
                          Total |     28,496      100.00

. 
. recode emplrel (missing=9), copyrest gen(emplrel_r)
(0 differences between emplrel and emplrel_r)

. replace emplrel_r=-9 if cntry=="FR" & (essround==1 | essround==2) // Replace this command line with [SYNTAX G and SYNTA
> X I]
(0 real changes made)

. replace emplrel_r=-9 if cntry=="HU" & essround==2 // Replace this command line with [SYNTAX E]
(0 real changes made)

. label define emplrel_r ///
> 1 "Employee" ///
> 2 "Self-employed" ///
> 3 "Working for own family business" ///
> 9 "Missing"

. label value emplrel_r emplrel_r

. tab emplrel_r

  RECODE of emplrel (Employment |
                      relation) |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     22,168       77.79       77.79
                  Self-employed |      3,429       12.03       89.83
Working for own family business |        411        1.44       91.27
                              6 |      2,410        8.46       99.73
                              7 |         13        0.05       99.77
                              8 |         38        0.13       99.91
                        Missing |         27        0.09      100.00
--------------------------------+-----------------------------------
                          Total |     28,496      100.00

. 
. tab emplno

     Number of |
     employees |
    respondent |
       has/had |      Freq.     Percent        Cum.
---------------+-----------------------------------
             0 |      2,092        7.34        7.34
             1 |        415        1.46        8.80
             2 |        241        0.85        9.64
             3 |        131        0.46       10.10
             4 |        111        0.39       10.49
             5 |         67        0.24       10.73
             6 |         42        0.15       10.88
             7 |         25        0.09       10.96
             8 |         27        0.09       11.06
             9 |         16        0.06       11.11
            10 |         36        0.13       11.24
            11 |          7        0.02       11.26
            12 |         20        0.07       11.33
            13 |          2        0.01       11.34
            14 |          8        0.03       11.37
            15 |         23        0.08       11.45
            16 |          6        0.02       11.47
            17 |          3        0.01       11.48
            18 |          3        0.01       11.49
            19 |          1        0.00       11.50
            20 |         16        0.06       11.55
            22 |          2        0.01       11.56
            23 |          2        0.01       11.57
            24 |          3        0.01       11.58
            25 |          4        0.01       11.59
            26 |          1        0.00       11.59
            28 |          3        0.01       11.61
            30 |         10        0.04       11.64
            31 |          1        0.00       11.64
            32 |          1        0.00       11.65
            34 |          1        0.00       11.65
            35 |          4        0.01       11.66
            37 |          1        0.00       11.67
            38 |          1        0.00       11.67
            40 |          6        0.02       11.69
            42 |          1        0.00       11.70
            44 |          1        0.00       11.70
            45 |          2        0.01       11.71
            50 |          2        0.01       11.71
            55 |          2        0.01       11.72
            60 |          5        0.02       11.74
            75 |          3        0.01       11.75
            90 |          1        0.00       11.75
            96 |          1        0.00       11.76
           100 |          2        0.01       11.76
           110 |          1        0.00       11.77
           120 |          3        0.01       11.78
           130 |          2        0.01       11.78
           150 |          2        0.01       11.79
           200 |          2        0.01       11.80
           230 |          1        0.00       11.80
           250 |          2        0.01       11.81
           320 |          1        0.00       11.81
           350 |          1        0.00       11.82
           763 |          1        0.00       11.82
Not applicable |     25,039       87.87       99.69
       Refusal |         20        0.07       99.76
    Don't know |         41        0.14       99.90
     No answer |         28        0.10      100.00
---------------+-----------------------------------
         Total |     28,496      100.00

. 
. recode emplno (0=0)(1/9=1)(10/10000=2)(missing=0), gen(emplno_r)
(861 differences between emplno and emplno_r)

. label define emplno_r ///
> 0 "0 employees" ///
> 1 "1-9 employees" ///
> 2 "10+ employees"

. label value emplno_r emplno_r

. tab emplno_r

    RECODE of |
       emplno |
   (Number of |
    employees |
   respondent |
     has/had) |      Freq.     Percent        Cum.
--------------+-----------------------------------
  0 employees |      2,092        7.34        7.34
1-9 employees |      1,075        3.77       11.11
10+ employees |        201        0.71       11.82
        66666 |     25,039       87.87       99.69
        77777 |         20        0.07       99.76
        88888 |         41        0.14       99.90
        99999 |         28        0.10      100.00
--------------+-----------------------------------
        Total |     28,496      100.00

. 
. 
. gen selfem_mainjob=.
(28496 missing values generated)

. replace selfem_mainjob=1 if emplrel_r==1 | emplrel_r==9
(22195 real changes made)

. replace selfem_mainjob=2 if emplrel_r==2 & emplno_r==0
(2092 real changes made)

. replace selfem_mainjob=2 if emplrel_r==3
(411 real changes made)

. replace selfem_mainjob=3 if emplrel_r==2 & emplno_r==1
(1075 real changes made)

. replace selfem_mainjob=4 if emplrel_r==2 & emplno_r==2
(201 real changes made)

. label variable selfem_mainjob "Employment status for respondants"

. label define selfem_mainjob ///
> 1 "Not self-employed" ///
> 2 "Self-empl without employees" ///
> 3 "Self-empl with 1-9 employees" ///
> 4 "Self-empl with 10 or more"

. label value selfem_mainjob selfem_mainjob

. tab selfem_mainjob

       Employment status for |
                 respondants |      Freq.     Percent        Cum.
-----------------------------+-----------------------------------
           Not self-employed |     22,195       85.45       85.45
 Self-empl without employees |      2,503        9.64       95.09
Self-empl with 1-9 employees |      1,075        4.14       99.23
   Self-empl with 10 or more |        201        0.77      100.00
-----------------------------+-----------------------------------
                       Total |     25,974      100.00

. 
. 
. *************************************************
. * Create Oesch class schema for respondents
. *************************************************
. 
. gen class16_r = -9

. 
. * Large employers (1)
. 
. replace class16_r=1 if selfem_mainjob==4
(201 real changes made)

. 
. 
. * Self-employed professionals (2)
. 
. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2000 & isco_mainjob <= 2229) 
(189 real changes made)

. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2300 & isco_mainjob <= 2470)
(258 real changes made)

. 
. * Small business owners with employees (3)
. 
. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(421 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(509 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob == 2230)
(1 real change made)

. 
. * Small business owners without employees (4)
. 
. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(423 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(1740 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob == 2230)
(3 real changes made)

. 
. * Technical experts (5)
. 
. replace class16_r=5 if (selfem_mainjob==1) & (isco_mainjob >= 2100 & isco_mainjob <= 2213)
(737 real changes made)

. 
. * Technicians (6)
. 
. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3100 & isco_mainjob <= 3152)
(816 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3210 & isco_mainjob <= 3213)
(57 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob == 3434)
(4 real changes made)

. 
. * Skilled manual (7)
. 
. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 6000 & isco_mainjob <= 7442)
(2735 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8310 & isco_mainjob <= 8312)
(52 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8324 & isco_mainjob <= 8330)
(261 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8332 & isco_mainjob <= 8340)
(173 real changes made)

. 
. * Low-skilled manual (8)
. 
. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8000 & isco_mainjob <= 8300)
(1042 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8320 & isco_mainjob <= 8321)
(11 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob == 8331)
(17 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 9153 & isco_mainjob <= 9333)
(858 real changes made)

. 
. * Higher-grade managers and administrators (9)
. 
. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 1000 & isco_mainjob <= 1239)
(1209 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 2400 & isco_mainjob <= 2429)
(477 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2441)
(46 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2470)
(113 real changes made)

. 
. * Lower-grade managers and administrators (10)
. 
. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 1300 & isco_mainjob <= 1319)
(262 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3400 & isco_mainjob <= 3433)
(1371 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3440 & isco_mainjob <= 3450)
(147 real changes made)

. 
. * Skilled clerks (11)
. 
. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4000 & isco_mainjob <= 4112)
(288 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4114 & isco_mainjob <= 4210)
(1897 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4212 & isco_mainjob <= 4222)
(280 real changes made)

. 
. * Unskilled clerks (12)
. 
. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4113)
(23 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4211)
(123 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4223)
(89 real changes made)

. 
. * Socio-cultural professionals (13)
. 
. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2220 &  isco_mainjob <= 2229)
(158 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2300 &  isco_mainjob <= 2320)
(597 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2340 &  isco_mainjob <= 2359)
(235 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2430 &  isco_mainjob <= 2440)
(29 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2442 &  isco_mainjob <= 2443)
(14 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2445)
(28 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2451)
(61 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2460)
(30 real changes made)

. 
. * Socio-cultural semi-professionals (14)
. 
. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2230)
(147 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2330 & isco_mainjob <= 2332)
(356 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2444)
(13 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2446 & isco_mainjob <= 2450)
(91 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2452 & isco_mainjob <= 2455)
(42 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3200)
(13 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3220 & isco_mainjob <= 3224)
(52 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3226)
(68 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3229 & isco_mainjob <= 3340)
(783 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3460 & isco_mainjob <= 3472)
(260 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3480)
(10 real changes made)

. 
. * Skilled service (15)
. 
. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 3225)
(29 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3227 & isco_mainjob <= 3228)
(41 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3473 & isco_mainjob <= 3475)
(47 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5000 & isco_mainjob <= 5113)
(59 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5122)
(291 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5131 & isco_mainjob <= 5132)
(743 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5140 & isco_mainjob <= 5141)
(142 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5143)
(6 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5160 & isco_mainjob <= 5220)
(1448 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 8323)
(95 real changes made)

. 
. * Low-skilled service (16)
. 
. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5120 & isco_mainjob <= 5121)
(69 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5123 & isco_mainjob <= 5130)
(442 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5133 & isco_mainjob <= 5139)
(404 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5142)
(11 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5149)
(39 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5230)
(0 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 8322)
(159 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 9100 &  isco_mainjob <= 9152)
(1666 real changes made)

. 
. mvdecode class16_r, mv(-9)
   class16_r: 2985 missing values generated

. label variable class16_r "Respondent's Oesch class position - 16 classes"

. label define class16_r ///
> 1 "Large employers" ///
> 2 "Self-employed professionals" ///
> 3 "Small business owners with employees" ///
> 4 "Small business owners without employees" ///
> 5 "Technical experts" ///
> 6 "Technicians" ///
> 7 "Skilled manual" ///
> 8 "Low-skilled manual" ///
> 9 "Higher-grade managers and administrators" ///
> 10 "Lower-grade managers and administrators" ///
> 11 "Skilled clerks" ///
> 12 "Unskilled clerks" ///
> 13 "Socio-cultural professionals" ///
> 14 "Socio-cultural semi-professionals" ///
> 15 "Skilled service" ///
> 16 "Low-skilled service"

. label value class16_r class16_r

. tab class16_r

 Respondent's Oesch class position - 16 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                        Large employers |        201        0.79        0.79
            Self-employed professionals |        447        1.75        2.54
   Small business owners with employees |        931        3.65        6.19
Small business owners without employees |      2,166        8.49       14.68
                      Technical experts |        737        2.89       17.57
                            Technicians |        877        3.44       21.01
                         Skilled manual |      3,221       12.63       33.63
                     Low-skilled manual |      1,928        7.56       41.19
Higher-grade managers and administrator |      1,845        7.23       48.42
Lower-grade managers and administrators |      1,780        6.98       55.40
                         Skilled clerks |      2,465        9.66       65.06
                       Unskilled clerks |        235        0.92       65.98
           Socio-cultural professionals |      1,152        4.52       70.50
      Socio-cultural semi-professionals |      1,835        7.19       77.69
                        Skilled service |      2,901       11.37       89.06
                    Low-skilled service |      2,790       10.94      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,511      100.00

. 
. recode class16_r (1 2=1)(3 4=2)(5 6=3)(7 8=4)(9 10=5)(11 12=6)(13 14=7)(15 16=8), gen(class8_r)
(25310 differences between class16_r and class8_r)

. label variable class8_r "Respondent's Oesch class position - 8 classes"

. label define class8_r ///
> 1 "Self-employed professionals and large employers" ///
> 2 "Small business owners" ///
> 3 "Technical (semi-)professionals" ///
> 4 "Production workers" ///
> 5 "(Associate) managers" ///
> 6 "Clerks" ///
> 7 "Socio-cultural (semi-)professionals" ///
> 8 "Service workers"

. label value class8_r class8_r

. tab class8_r

  Respondent's Oesch class position - 8 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Self-employed professionals and large e |        648        2.54        2.54
                  Small business owners |      3,097       12.14       14.68
         Technical (semi-)professionals |      1,614        6.33       21.01
                     Production workers |      5,149       20.18       41.19
                   (Associate) managers |      3,625       14.21       55.40
                                 Clerks |      2,700       10.58       65.98
    Socio-cultural (semi-)professionals |      2,987       11.71       77.69
                        Service workers |      5,691       22.31      100.00
----------------------------------------+-----------------------------------
                                  Total |     25,511      100.00

. 
. 
. *** Aggregated sector variable
. * Creation of variable
. gen sector=.
(28496 missing values generated)

. replace sector=1 if nace==1 | nace==2 | nace==5
(1261 real changes made)

. replace sector=2 if nace==10 | nace==11 | nace==12 | nace==13 | nace==14
(144 real changes made)

. replace sector=3 if nace==15 | nace==16 | nace==17 | nace==18 | nace==19 | nace==20 ///
>          | nace==21 | nace==22 | nace==23 | nace==24 | nace==25 | nace==26 | nace==27 ///
>          | nace==28 | nace==29 | nace==30 | nace==31 | nace==32 | nace==33 | nace==34 ///
>          | nace==35 | nace==36 | nace==37
(4081 real changes made)

. replace sector=4 if nace==40 | nace==41
(243 real changes made)

. replace sector=5 if nace==45
(1852 real changes made)

. replace sector=6 if nace==50 | nace==51 | nace==52 | nace==55
(4641 real changes made)

. replace sector=7 if nace==60 | nace==61 | nace==62 | nace==63 | nace==64
(1531 real changes made)

. replace sector=8 if nace==65 | nace==66 | nace==67 | nace==70 | nace==71 | nace==72 ///
>          | nace==73 | nace==74
(3269 real changes made)

. replace sector=9 if nace==75 | nace==80 | nace==85 | nace==90 | nace==91 | nace==92 ///
>          | nace==93 | nace==95 | nace==99
(8402 real changes made)

. lab var sector "Aggregated sector variable"

. * Definition of value label
. lab define sector 1 "Agriculture, hunting, forestry and fishing" ///
>         2 "Mining and quarrying" ///
>         3 "Manufacturing" ///
>         4 "Electricity, gas and water" ///
>         5 "Construction" ///
>         6 "Wholesale and retail trade and restaurants and hotels" ///
>         7 "Transport, storage and communications" ///
>         8 "Financing, insurance, real estate and busines services" ///
>         9 "Community, social and personal services"

. lab values sector sector

. 
. 
. *** Gender
. * Creation of variable
. gen gender=gndr

. lab var gender "Gender"

. * Recoding of variable and definition of value label
. recode gender (1=0) (2=1)
(gender: 28486 changes made)

. lab define gender 0 "male" 1 "female"

. lab values gender gender

. 
. 
. 
. *** Creation of modernization loser variable 1 : routine service (class 16)
. * Creation of variable
. gen mod_losers1=.
(28496 missing values generated)

. replace mod_losers1 =1 if class16_r==16
(2790 real changes made)

. replace mod_losers1 =0 if class16_r!=16
(25706 real changes made)

. replace mod_losers1=. if class16_r==.
(2985 real changes made, 2985 to missing)

. 
. lab var mod_losers1 "Modernization losers 1; routine service oesch "

. * Definition of value label
. lab define mod_losers1 1 "mod loser (routine service)" 0 "not loser"

. lab values mod_losers1 mod_losers1

. 
. 
. *** Creation of modernization loser variable 4 : routine and skilled manual (classes 7,8)
. * Creation of variable
. gen mod_losers4=0

. replace mod_losers4 =1 if class16_r==7
(3221 real changes made)

. replace mod_losers4 =1 if class16_r==8
(1928 real changes made)

. replace mod_losers4 =. if class16_r==.
(2985 real changes made, 2985 to missing)

. 
. lab var mod_losers4 "Modernization losers 4; routine and skilled manual oesch "

. * Definition of value label
. lab define mod_losers4 1 "mod loser (routine and skilled manual)" 0 "not loser"

. lab values mod_losers4 mod_losers4

. 
. *** Creation of modernization winner variable 1 : socio-cult prof
. * Creation of variable
. gen mod_winners1=0

. replace mod_winners1 =1 if class16_r==13
(1152 real changes made)

. replace mod_winners1 =1 if class16_r==14
(1835 real changes made)

. replace mod_winners1 =. if class16_r==.
(2985 real changes made, 2985 to missing)

. 
. lab var mod_winners1 "Modernization winners 1; SCP oesch "

. * Definition of value label
. lab define mod_winners1 1 "mod winners (SCP oesch)" 0 "not winner"

. lab values mod_winners1 mod_winners1

. 
. 
. ************************************
. ************************************
. *       1.3 lm status: unempl, temp, involunt parttime
. 
. 
. *** unemployed in last 5 years
. * Creation of variable
. gen unemployed5y=uemp5yr==1

. lab var unemployed5y "Unemployed in last 5 years"

. * Definition of value label
. lab define unemployed5y 1 "unemployed in last 5 years" 0 "other"

. lab values unemployed5y unemployed5y

. 
. 
. *** temporary employed
. * Creation of variable
. gen temp=wrkctr==2

. lab var temp "temporary employed (limited contract)"

. * Definition of value label
. lab define temp 1 "limited contract" 0 "other"

. lab values temp temp

. 
. 
. *** part-time
. * Creation of variable
. gen parttime=wkhct<30

. lab var parttime "parttime employed (<30h)"

. * Definition of value label
. lab define parttime 1 "parttime" 0 "other"

. lab values parttime parttime

. 
. 
. ************************************
. ************************************
. *       1.4 other variables : country dummies, polint, age, age2, income?, gender, sector?
. 
. 
. 
. *** Age
. * Creation of variable
. gen age=2008-yrbrn

. lab var age "Age in years"

. gen age2=age^2

. lab var age2 "Age in years (squared)"

. 
. 
. *** Political interest
. * Creation of variable
. gen polint=polintr

. recode polint (1=4) (2=3) (3=2) (4=1)
(polint: 28467 changes made)

. lab var polint "Interest in politics"

. * Definition of value label
. lab define polint 4 "Very interested" 3 "Quite interested" 2 "Hardly interested" ///
>         1 "Not at all interested"

. lab values polint polint

. 
. 
. *** Income
. * Creation of variable
. gen inc=hinctnt

. sum hinctnt if cntry=="AT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="AT"
(0 real changes made)

. sum hinctnt if cntry=="BE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            2              1
 5%            3              1
10%            4              1       Obs                1760
25%            6              1       Sum of Wgt.        1760

50%            8                      Mean           15.83295
                        Largest       Std. Dev.      24.04282
75%           10             88
90%           77             88       Variance       578.0574
95%           88             88       Skewness         2.4817
99%           88             88       Kurtosis       7.300831

. replace inc=hinctnt-r(p50) if cntry=="BE"
(1760 real changes made)

. sum hinctnt if cntry=="CH", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1819
25%            4              1       Sum of Wgt.        1819

50%            7                      Mean           23.24849
                        Largest       Std. Dev.      32.14812
75%           10             88
90%           77             88       Variance       1033.501
95%           88             88       Skewness       1.215521
99%           88             88       Kurtosis       2.538826

. replace inc=hinctnt-r(p50) if cntry=="CH"
(1819 real changes made)

. sum hinctnt if cntry=="CZ", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="CZ"
(0 real changes made)

. sum hinctnt if cntry=="DE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                2751
25%            3              1       Sum of Wgt.        2751

50%            5                      Mean           17.33297
                        Largest       Std. Dev.      28.43508
75%            8             88
90%           77             88       Variance       808.5538
95%           77             88       Skewness       1.761338
99%           88             88       Kurtosis       4.187208

. replace inc=hinctnt-r(p50) if cntry=="DE"
(2751 real changes made)

. sum hinctnt if cntry=="DK", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1610
25%            4              1       Sum of Wgt.        1610

50%            7                      Mean           16.89565
                        Largest       Std. Dev.      27.90867
75%           10             99
90%           88             99       Variance        778.894
95%           88             99       Skewness       2.125038
99%           99             99       Kurtosis        5.64995

. replace inc=hinctnt-r(p50) if cntry=="DK"
(1610 real changes made)

. sum hinctnt if cntry=="EE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="EE"
(0 real changes made)

. sum hinctnt if cntry=="ES", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                2576
25%            4              1       Sum of Wgt.        2576

50%            7                      Mean           33.18711
                        Largest       Std. Dev.      37.23662
75%           77             88
90%           88             88       Variance       1386.566
95%           88             88       Skewness       .5563681
99%           88             88       Kurtosis        1.35582

. replace inc=hinctnt-r(p50) if cntry=="ES"
(2576 real changes made)

. sum hinctnt if cntry=="FI", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                2195
25%            4              1       Sum of Wgt.        2195

50%            7                      Mean           12.46105
                        Largest       Std. Dev.      22.15331
75%            9             88
90%           10             88       Variance       490.7691
95%           88             88       Skewness       2.985204
99%           88             88       Kurtosis       10.13227

. replace inc=hinctnt-r(p50) if cntry=="FI"
(2195 real changes made)

. sum hinctnt if cntry=="FR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                2073
25%            4              1       Sum of Wgt.        2073

50%            7                      Mean           13.41052
                        Largest       Std. Dev.      23.05558
75%            9             88
90%           10             88       Variance       531.5597
95%           77             88       Skewness       2.628664
99%           88             88       Kurtosis       8.125123

. replace inc=hinctnt-r(p50) if cntry=="FR"
(2073 real changes made)

. sum hinctnt if cntry=="GB", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            1              1       Obs                2352
25%            3              1       Sum of Wgt.        2352

50%            6                      Mean           17.01956
                        Largest       Std. Dev.      28.12976
75%            9             99
90%           77             99       Variance       791.2833
95%           88             99       Skewness       1.952241
99%           88             99       Kurtosis       4.940502

. replace inc=hinctnt-r(p50) if cntry=="GB"
(2352 real changes made)

. sum hinctnt if cntry=="GR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2072
25%            5              1       Sum of Wgt.        2072

50%            8                      Mean           35.38707
                        Largest       Std. Dev.       36.4515
75%           77             88
90%           77             88       Variance       1328.712
95%           88             88       Skewness       .4132902
99%           88             88       Kurtosis       1.212921

. replace inc=hinctnt-r(p50) if cntry=="GR"
(2072 real changes made)

. sum hinctnt if cntry=="HU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="HU"
(0 real changes made)

. sum hinctnt if cntry=="IE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1764
25%            3              1       Sum of Wgt.        1764

50%            5                      Mean           13.75227
                        Largest       Std. Dev.      25.32203
75%            8             88
90%           77             88       Variance       641.2052
95%           88             88       Skewness       2.363724
99%           88             88       Kurtosis       6.719054

. replace inc=hinctnt-r(p50) if cntry=="IE"
(1764 real changes made)

. sum hinctnt if cntry=="IL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IL"
(0 real changes made)

. sum hinctnt if cntry=="IS", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IS"
(0 real changes made)

. sum hinctnt if cntry=="IT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IT"
(0 real changes made)

. sum hinctnt if cntry=="LU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="LU"
(0 real changes made)

. sum hinctnt if cntry=="NL", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            2              1       Obs                1778
25%            4              1       Sum of Wgt.        1778

50%            7                      Mean           15.13892
                        Largest       Std. Dev.      24.90157
75%            9             88
90%           77             88       Variance       620.0882
95%           88             88       Skewness       2.335557
99%           88             88       Kurtosis       6.611142

. replace inc=hinctnt-r(p50) if cntry=="NL"
(1778 real changes made)

. sum hinctnt if cntry=="NO", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                1549
25%            5              1       Sum of Wgt.        1549

50%            7                      Mean           9.990962
                        Largest       Std. Dev.      16.35432
75%            9             88
90%           10             88       Variance       267.4637
95%           10             88       Skewness       4.316177
99%           88             99       Kurtosis       20.25317

. replace inc=hinctnt-r(p50) if cntry=="NO"
(1549 real changes made)

. sum hinctnt if cntry=="PL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PL"
(0 real changes made)

. sum hinctnt if cntry=="PT", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                2367
25%            5              1       Sum of Wgt.        2367

50%           77                      Mean           49.14575
                        Largest       Std. Dev.       38.2847
75%           77             99
90%           88             99       Variance       1465.718
95%           88             99       Skewness      -.2948393
99%           88             99       Kurtosis       1.143931

. replace inc=hinctnt-r(p50) if cntry=="PT"
(2367 real changes made)

. sum hinctnt if cntry=="SE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                1830
25%            6              1       Sum of Wgt.        1830

50%            8                      Mean           11.31967
                        Largest       Std. Dev.      18.32941
75%            9             88
90%           10             88       Variance       335.9672
95%           77             88       Skewness       3.818691
99%           88             99       Kurtosis       15.95768

. replace inc=hinctnt-r(p50) if cntry=="SE"
(1830 real changes made)

. sum hinctnt if cntry=="SI", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SI"
(0 real changes made)

. sum hinctnt if cntry=="SK", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SK"
(0 real changes made)

. lab var inc "Income, difference between respondet class and median class per country"

. 
. 
. ************************************
. ************************************
. *       1.5 Party choice and participation (adapted from Rommel&Walter)
. 
. *** Partisan preference, last election (not classified parties are missings)
. * Creation of variable
. gen party_vote=.
(28496 missing values generated)

. label var party_vote "Partisan preference, last election"

. * Austria: no observations
. * Belgium
. replace   party_vote=1         if        prtvtbbe==1
(45 real changes made)

. replace   party_vote=5         if        prtvtbbe==2
(295 real changes made)

. replace   party_vote=5         if        prtvtbbe==4
(31 real changes made)

. replace   party_vote=3         if        prtvtbbe==5
(144 real changes made)

. replace   party_vote=7         if        prtvtbbe==7
(97 real changes made)

. replace   party_vote=4         if        prtvtbbe==8
(158 real changes made)

. replace   party_vote=5         if        prtvtbbe==9
(84 real changes made)

. replace   party_vote=1         if        prtvtbbe==10
(65 real changes made)

. replace   party_vote=7         if        prtvtbbe==11
(6 real changes made)

. replace   party_vote=4         if        prtvtbbe==12
(130 real changes made)

. replace   party_vote=3         if        prtvtbbe==13
(185 real changes made)

. replace   party_vote=0         if        prtvtbbe==14
(16 real changes made)

. replace   party_vote=.         if        prtvtbbe==15
(0 real changes made)

. replace   party_vote=.         if        prtvtbbe==16
(0 real changes made)

. * Switzerland
. replace   party_vote=4         if        prtvtbch==1
(97 real changes made)

. replace   party_vote=5         if        prtvtbch==2
(93 real changes made)

. replace   party_vote=3         if        prtvtbch==3
(178 real changes made)

. replace   party_vote=7         if        prtvtbch==4
(207 real changes made)

. replace   party_vote=4         if        prtvtbch==5
(19 real changes made)

. replace   party_vote=.         if        prtvtbch==6
(0 real changes made)

. replace   party_vote=2         if        prtvtbch==7
(5 real changes made)

. replace   party_vote=1         if        prtvtbch==8
(103 real changes made)

. replace   party_vote=.         if        prtvtbch==9
(0 real changes made)

. replace   party_vote=7         if        prtvtbch==10
(1 real change made)

. replace   party_vote=7         if        prtvtbch==11
(7 real changes made)

. replace   party_vote=5         if        prtvtbch==12
(17 real changes made)

. replace   party_vote=.         if        prtvtbch==13
(0 real changes made)

. replace   party_vote=.         if        prtvtbch==15
(0 real changes made)

. replace   party_vote=.         if        prtvtbch==16
(0 real changes made)

. 
. * Germany
. replace   party_vote=3         if        prtvbde1==1
(648 real changes made)

. replace   party_vote=5         if        prtvbde1==2
(679 real changes made)

. replace   party_vote=1         if        prtvbde1==3
(157 real changes made)

. replace   party_vote=4         if        prtvbde1==4
(93 real changes made)

. replace   party_vote=2         if        prtvbde1==5
(161 real changes made)

. replace   party_vote=7         if        prtvbde1==6
(10 real changes made)

. replace   party_vote=7         if        prtvbde1==7
(3 real changes made)

. replace   party_vote=0         if        prtvbde1==8
(32 real changes made)

. * Denmark
. replace   party_vote=3         if        prtvtbdk==1
(360 real changes made)

. replace   party_vote=1         if        prtvtbdk==2
(90 real changes made)

. replace   party_vote=6         if        prtvtbdk==3
(131 real changes made)

. replace   party_vote=1         if        prtvtbdk==4
(193 real changes made)

. replace   party_vote=7         if        prtvtbdk==5
(129 real changes made)

. replace   party_vote=5         if        prtvtbdk==6
(14 real changes made)

. replace   party_vote=4         if        prtvtbdk==7
(367 real changes made)

. replace   party_vote=0         if        prtvtbdk==8
(36 real changes made)

. replace   party_vote=2         if        prtvtbdk==9
(20 real changes made)

. replace   party_vote=0         if        prtvtbdk==10
(5 real changes made)

. 
. * Spain
. replace   party_vote=6         if        prtvtbes==1
(451 real changes made)

. replace   party_vote=3         if        prtvtbes==2
(750 real changes made)

. replace   party_vote=2         if        prtvtbes==3
(64 real changes made)

. replace   party_vote=6         if        prtvtbes==4
(56 real changes made)

. replace   party_vote=0         if        prtvtbes==5
(18 real changes made)

. replace   party_vote=0         if        prtvtbes==6
(30 real changes made)

. replace   party_vote=0         if        prtvtbes==7
(36 real changes made)

. replace   party_vote=0         if        prtvtbes==8
(4 real changes made)

. replace   party_vote=.         if        prtvtbes==9
(0 real changes made)

. replace   party_vote=.         if        prtvtbes==10
(0 real changes made)

. replace   party_vote=0         if        prtvtbes==74
(23 real changes made)

. replace   party_vote=.         if        prtvtbes==75
(0 real changes made)

. replace   party_vote=.         if        prtvtbes==76
(0 real changes made)

. * Finland
. replace   party_vote=6         if        prtvtafi==1
(359 real changes made)

. replace   party_vote=0         if        prtvtafi==2
(74 real changes made)

. replace   party_vote=4         if        prtvtafi==3
(1 real change made)

. replace   party_vote=5         if        prtvtafi==4
(296 real changes made)

. replace   party_vote=7         if        prtvtafi==5
(54 real changes made)

. replace   party_vote=5         if        prtvtafi==6
(44 real changes made)

. replace   party_vote=1         if        prtvtafi==7
(131 real changes made)

. replace   party_vote=3         if        prtvtafi==8
(315 real changes made)

. replace   party_vote=2         if        prtvtafi==9
(95 real changes made)

. replace   party_vote=.         if        prtvtafi==10
(0 real changes made)

. replace   party_vote=.         if        prtvtafi==11
(0 real changes made)

. replace   party_vote=0         if        prtvtafi==12
(17 real changes made)

. * France
. replace   party_vote=.         if        prtvtbfr==1
(0 real changes made)

. replace   party_vote=7         if        prtvtbfr==2
(31 real changes made)

. replace   party_vote=2         if        prtvtbfr==3
(24 real changes made)

. replace   party_vote=2         if        prtvtbfr==4
(23 real changes made)

. replace   party_vote=.         if        prtvtbfr==5
(0 real changes made)

. replace   party_vote=4         if        prtvtbfr==6
(11 real changes made)

. replace   party_vote=2         if        prtvtbfr==7
(44 real changes made)

. replace   party_vote=3         if        prtvtbfr==8
(419 real changes made)

. replace   party_vote=.         if        prtvtbfr==9
(0 real changes made)

. replace   party_vote=4         if        prtvtbfr==10
(88 real changes made)

. replace   party_vote=6         if        prtvtbfr==11
(408 real changes made)

. replace   party_vote=1         if        prtvtbfr==12
(65 real changes made)

. replace   party_vote=.         if        prtvtbfr==13
(0 real changes made)

. replace   party_vote=0         if        prtvtbfr==14
(12 real changes made)

. replace   party_vote=0         if        prtvtbfr==15
(24 real changes made)

. replace   party_vote=0         if        prtvtbfr==16
(3 real changes made)

. replace   party_vote=.         if        prtvtbfr==17
(0 real changes made)

. replace   party_vote=.         if        prtvtbfr==18
(0 real changes made)

. * Great Britain
. replace   party_vote=6         if        prtvtgb== 1
(467 real changes made)

. replace   party_vote=3         if        prtvtgb== 2
(615 real changes made)

. replace   party_vote=4         if        prtvtgb== 3
(242 real changes made)

. replace   party_vote=0         if        prtvtgb== 4
(24 real changes made)

. replace   party_vote=0         if        prtvtgb== 5
(5 real changes made)

. replace   party_vote=.         if        prtvtgb== 6
(0 real changes made)

. replace   party_vote=0         if        prtvtgb== 7
(42 real changes made)

. replace   party_vote=6         if        prtvtgb== 11
(7 real changes made)

. replace   party_vote=0         if        prtvtgb== 12
(10 real changes made)

. replace   party_vote=2         if        prtvtgb== 13
(7 real changes made)

. replace   party_vote=3         if        prtvtgb== 14
(16 real changes made)

. replace   party_vote=0         if        prtvtgb== 15
(2 real changes made)

. * Greece
. replace   party_vote=3         if        prtvtbgr==1
(538 real changes made)

. replace   party_vote=6         if        prtvtbgr==2
(411 real changes made)

. replace   party_vote=2         if        prtvtbgr==3
(124 real changes made)

. replace   party_vote=2         if        prtvtbgr==4
(84 real changes made)

. replace   party_vote=7         if        prtvtbgr==5
(49 real changes made)

. replace   party_vote=.         if        prtvtbgr==6
(0 real changes made)

. replace   party_vote=0         if        prtvtbgr==7
(57 real changes made)

. 
. * Ireland
. replace   party_vote=6         if        prtvtie== 1
(531 real changes made)

. replace   party_vote=5         if        prtvtie== 2
(416 real changes made)

. replace   party_vote=3         if        prtvtie== 3
(118 real changes made)

. replace   party_vote=4         if        prtvtie== 4
(6 real changes made)

. replace   party_vote=1         if        prtvtie== 5
(31 real changes made)

. replace   party_vote=2         if        prtvtie== 6
(64 real changes made)

. replace   party_vote=.         if        prtvtie== 7
(0 real changes made)

. replace   party_vote=0         if        prtvtie== 8
(7 real changes made)

. 
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg:  no observations
. * Netherlands
. replace   party_vote=5         if        prtvtcnl==1
(378 real changes made)

. replace   party_vote=3         if        prtvtcnl==2
(330 real changes made)

. replace   party_vote=4         if        prtvtcnl==3
(204 real changes made)

. replace   party_vote=7         if        prtvtcnl==4
(22 real changes made)

. replace   party_vote=4         if        prtvtcnl==5
(52 real changes made)

. replace   party_vote=1         if        prtvtcnl==6
(86 real changes made)

. replace   party_vote=2         if        prtvtcnl==7
(176 real changes made)

. replace   party_vote=5         if        prtvtcnl==8
(64 real changes made)

. replace   party_vote=4         if        prtvtcnl==9
(2 real changes made)

. replace   party_vote=4         if        prtvtcnl==10
(18 real changes made)

. replace   party_vote=7         if        prtvtcnl==11
(35 real changes made)

. replace   party_vote=.         if        prtvtcnl==12
(0 real changes made)

. replace   party_vote=0         if        prtvtcnl==13
(2 real changes made)

. replace   party_vote=.         if        prtvtcnl==14
(0 real changes made)

. * Norway
. replace   party_vote=.         if        prtvtno== 1
(0 real changes made)

. replace   party_vote=2         if        prtvtno== 2
(110 real changes made)

. replace   party_vote=3         if        prtvtno== 3
(399 real changes made)

. replace   party_vote=4         if        prtvtno== 4
(53 real changes made)

. replace   party_vote=5         if        prtvtno== 5
(67 real changes made)

. replace   party_vote=5         if        prtvtno== 6
(59 real changes made)

. replace   party_vote=6         if        prtvtno== 7
(237 real changes made)

. replace   party_vote=7         if        prtvtno== 8
(178 real changes made)

. replace   party_vote=.         if        prtvtno== 9
(0 real changes made)

. replace   party_vote=0         if        prtvtno== 10
(12 real changes made)

. * Portugal
. replace   party_vote=2         if        prtvtapt==1
(35 real changes made)

. replace   party_vote=5         if        prtvtapt==2
(39 real changes made)

. replace   party_vote=2         if        prtvtapt==3
(69 real changes made)

. replace   party_vote=.         if        prtvtapt==4
(0 real changes made)

. replace   party_vote=.         if        prtvtapt==6
(0 real changes made)

. replace   party_vote=.         if        prtvtapt==7
(0 real changes made)

. replace   party_vote=7         if        prtvtapt==8
(2 real changes made)

. replace   party_vote=5         if        prtvtapt==10
(304 real changes made)

. replace   party_vote=3         if        prtvtapt==11
(587 real changes made)

. replace   party_vote=.         if        prtvtapt==12
(0 real changes made)

. * Sweden
. replace   party_vote=5         if        prtvtse== 1
(94 real changes made)

. replace   party_vote=4         if        prtvtse== 2
(119 real changes made)

. replace   party_vote=5         if        prtvtse== 3
(62 real changes made)

. replace   party_vote=1         if        prtvtse== 4
(80 real changes made)

. replace   party_vote=6         if        prtvtse== 5
(417 real changes made)

. replace   party_vote=3         if        prtvtse== 6
(504 real changes made)

. replace   party_vote=2         if        prtvtse== 7
(73 real changes made)

. replace   party_vote=0         if        prtvtse== 8
(57 real changes made)

. 
. * Definition of value labels
. label def party_vote 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_vote party_vote

. 
. 
. *** Party closeness (not classified parties are missings)
. * Creation of variable
. gen party_close=.
(28496 missing values generated)

. label var party_close "Party closeness"

. * Austria: no observations
. * Belgium
. replace   party_close=1         if        prtclbbe==1
(43 real changes made)

. replace   party_close=5         if        prtclbbe==2
(147 real changes made)

. replace   party_close=5         if        prtclbbe==4
(25 real changes made)

. replace   party_close=3         if        prtclbbe==5
(94 real changes made)

. replace   party_close=7         if        prtclbbe==7
(1 real change made)

. replace   party_close=4         if        prtclbbe==8
(45 real changes made)

. replace   party_close=5         if        prtclbbe==9
(79 real changes made)

. replace   party_close=1         if        prtclbbe==10
(62 real changes made)

. replace   party_close=7         if        prtclbbe==11
(65 real changes made)

. replace   party_close=4         if        prtclbbe==12
(1 real change made)

. replace   party_close=3         if        prtclbbe==13
(95 real changes made)

. replace   party_close=0         if        prtclbbe==14
(137 real changes made)

. replace   party_close=.         if        prtclbbe==15
(0 real changes made)

. replace   party_close=.         if        prtclbbe==16
(0 real changes made)

. * Switzerland
. replace   party_close=4         if        prtclbch==1
(135 real changes made)

. replace   party_close=5         if        prtclbch==2
(113 real changes made)

. replace   party_close=3         if        prtclbch==3
(245 real changes made)

. replace   party_close=7         if        prtclbch==4
(236 real changes made)

. replace   party_close=4         if        prtclbch==5
(24 real changes made)

. replace   party_close=.         if        prtclbch==6
(0 real changes made)

. replace   party_close=2         if        prtclbch==7
(7 real changes made)

. replace   party_close=1         if        prtclbch==8
(109 real changes made)

. replace   party_close=.         if        prtclbch==9
(0 real changes made)

. replace   party_close=7         if        prtclbch==10
(2 real changes made)

. replace   party_close=7         if        prtclbch==11
(6 real changes made)

. replace   party_close=5         if        prtclbch==12
(18 real changes made)

. replace   party_close=.         if        prtclbch==13
(0 real changes made)

. replace   party_close=.         if        prtclbch==15
(0 real changes made)

. replace   party_close=.         if        prtclbch==16
(0 real changes made)

. 
. * Germany
. replace   party_close=3         if        prtclbde==1
(392 real changes made)

. replace   party_close=5         if        prtclbde==2
(475 real changes made)

. replace   party_close=1         if        prtclbde==3
(198 real changes made)

. replace   party_close=4         if        prtclbde==4
(90 real changes made)

. replace   party_close=2         if        prtclbde==5
(157 real changes made)

. replace   party_close=7         if        prtclbde==6
(8 real changes made)

. replace   party_close=7         if        prtclbde==7
(5 real changes made)

. replace   party_close=0         if        prtclbde==8
(18 real changes made)

. * Denmark
. replace   party_close=3         if        prtclbdk==1
(322 real changes made)

. replace   party_close=1         if        prtclbdk==2
(72 real changes made)

. replace   party_close=6         if        prtclbdk==3
(116 real changes made)

. replace   party_close=1         if        prtclbdk==4
(220 real changes made)

. replace   party_close=7         if        prtclbdk==5
(109 real changes made)

. replace   party_close=5         if        prtclbdk==6
(9 real changes made)

. replace   party_close=4         if        prtclbdk==7
(286 real changes made)

. replace   party_close=0         if        prtclbdk==8
(5 real changes made)

. replace   party_close=2         if        prtclbdk==9
(22 real changes made)

. replace   party_close=0         if        prtclbdk==10
(0 real changes made)

. 
. * Spain
. replace   party_close=6         if        prtclbes==1
(304 real changes made)

. replace   party_close=3         if        prtclbes==2
(512 real changes made)

. replace   party_close=2         if        prtclbes==3
(59 real changes made)

. replace   party_close=6         if        prtclbes==4
(39 real changes made)

. replace   party_close=0         if        prtclbes==5
(19 real changes made)

. replace   party_close=0         if        prtclbes==6
(23 real changes made)

. replace   party_close=0         if        prtclbes==7
(24 real changes made)

. replace   party_close=0         if        prtclbes==8
(3 real changes made)

. replace   party_close=.         if        prtclbes==9
(0 real changes made)

. replace   party_close=.         if        prtclbes==10
(0 real changes made)

. replace   party_close=0         if        prtclbes==74
(18 real changes made)

. replace   party_close=.         if        prtclbes==75
(0 real changes made)

. replace   party_close=.         if        prtclbes==76
(0 real changes made)

. * Finland
. replace   party_close=6         if        prtclafi==1
(290 real changes made)

. replace   party_close=0         if        prtclafi==2
(57 real changes made)

. replace   party_close=4         if        prtclafi==3
(2 real changes made)

. replace   party_close=5         if        prtclafi==4
(228 real changes made)

. replace   party_close=7         if        prtclafi==5
(71 real changes made)

. replace   party_close=5         if        prtclafi==6
(42 real changes made)

. replace   party_close=1         if        prtclafi==7
(157 real changes made)

. replace   party_close=3         if        prtclafi==8
(238 real changes made)

. replace   party_close=2         if        prtclafi==9
(87 real changes made)

. replace   party_close=.         if        prtclafi==10
(0 real changes made)

. replace   party_close=.         if        prtclafi==11
(0 real changes made)

. replace   party_close=0         if        prtclafi==12
(11 real changes made)

. * France
. replace   party_close=.         if        prtclbfr==1
(0 real changes made)

. replace   party_close=7         if        prtclbfr==2
(34 real changes made)

. replace   party_close=2         if        prtclbfr==3
(42 real changes made)

. replace   party_close=2         if        prtclbfr==4
(14 real changes made)

. replace   party_close=.         if        prtclbfr==5
(0 real changes made)

. replace   party_close=4         if        prtclbfr==6
(11 real changes made)

. replace   party_close=2         if        prtclbfr==7
(21 real changes made)

. replace   party_close=3         if        prtclbfr==8
(83 real changes made)

. replace   party_close=.         if        prtclbfr==9
(0 real changes made)

. replace   party_close=4         if        prtclbfr==10
(334 real changes made)

. replace   party_close=6         if        prtclbfr==11
(361 real changes made)

. replace   party_close=1         if        prtclbfr==12
(76 real changes made)

. replace   party_close=.         if        prtclbfr==13
(0 real changes made)

. replace   party_close=0         if        prtclbfr==14
(13 real changes made)

. replace   party_close=0         if        prtclbfr==15
(9 real changes made)

. replace   party_close=0         if        prtclbfr==16
(0 real changes made)

. replace   party_close=.         if        prtclbfr==17
(0 real changes made)

. replace   party_close=.         if        prtclbfr==18
(0 real changes made)

. * Great Britain
. replace   party_close=6         if        prtclgb== 1
(402 real changes made)

. replace   party_close=3         if        prtclgb== 2
(430 real changes made)

. replace   party_close=4         if        prtclgb== 3
(144 real changes made)

. replace   party_close=0         if        prtclgb== 4
(23 real changes made)

. replace   party_close=0         if        prtclgb== 5
(10 real changes made)

. replace   party_close=.         if        prtclgb== 6
(0 real changes made)

. replace   party_close=0         if        prtclgb== 7
(37 real changes made)

. replace   party_close=6         if        prtclgb== 11
(8 real changes made)

. replace   party_close=0         if        prtclgb== 12
(4 real changes made)

. replace   party_close=2         if        prtclgb== 13
(8 real changes made)

. replace   party_close=3         if        prtclgb== 14
(7 real changes made)

. replace   party_close=0         if        prtclgb== 15
(2 real changes made)

. * Greece
. replace   party_close=3         if        prtclbgr==1
(482 real changes made)

. replace   party_close=6         if        prtclbgr==2
(330 real changes made)

. replace   party_close=2         if        prtclbgr==3
(121 real changes made)

. replace   party_close=2         if        prtclbgr==4
(75 real changes made)

. replace   party_close=7         if        prtclbgr==5
(38 real changes made)

. replace   party_close=.         if        prtclbgr==6
(0 real changes made)

. replace   party_close=0         if        prtclbgr==7
(3 real changes made)

. 
. * Ireland
. replace   party_close=6         if        prtclbie== 1
(299 real changes made)

. replace   party_close=5         if        prtclbie== 2
(234 real changes made)

. replace   party_close=3         if        prtclbie== 3
(95 real changes made)

. replace   party_close=4         if        prtclbie== 4
(26 real changes made)

. replace   party_close=1         if        prtclbie== 5
(42 real changes made)

. replace   party_close=2         if        prtclbie== 6
(7 real changes made)

. replace   party_close=.         if        prtclbie== 7
(0 real changes made)

. replace   party_close=0         if        prtclbie== 8
(0 real changes made)

. 
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg:  no observations
. * Netherlands
. replace   party_close=5         if        prtclbnl==1
(216 real changes made)

. replace   party_close=3         if        prtclbnl==2
(188 real changes made)

. replace   party_close=4         if        prtclbnl==3
(134 real changes made)

. replace   party_close=7         if        prtclbnl==4
(8 real changes made)

. replace   party_close=4         if        prtclbnl==5
(61 real changes made)

. replace   party_close=1         if        prtclbnl==6
(66 real changes made)

. replace   party_close=2         if        prtclbnl==7
(136 real changes made)

. replace   party_close=5         if        prtclbnl==8
(49 real changes made)

. replace   party_close=4         if        prtclbnl==9
(2 real changes made)

. replace   party_close=4         if        prtclbnl==10
(19 real changes made)

. replace   party_close=7         if        prtclbnl==11
(50 real changes made)

. replace   party_close=.         if        prtclbnl==12
(0 real changes made)

. replace   party_close=0         if        prtclbnl==13
(11 real changes made)

. replace   party_close=.         if        prtclbnl==14
(0 real changes made)

. * Norway
. replace   party_close=.         if        prtclno== 1
(0 real changes made)

. replace   party_close=2         if        prtclno== 2
(94 real changes made)

. replace   party_close=3         if        prtclno== 3
(374 real changes made)

. replace   party_close=4         if        prtclno== 4
(42 real changes made)

. replace   party_close=5         if        prtclno== 5
(60 real changes made)

. replace   party_close=5         if        prtclno== 6
(49 real changes made)

. replace   party_close=6         if        prtclno== 7
(184 real changes made)

. replace   party_close=7         if        prtclno== 8
(181 real changes made)

. replace   party_close=.         if        prtclno== 9
(0 real changes made)

. replace   party_close=0         if        prtclno== 10
(6 real changes made)

. * Portugal
. replace   party_close=2         if        prtclbpt==1
(45 real changes made)

. replace   party_close=5         if        prtclbpt==2
(33 real changes made)

. replace   party_close=2         if        prtclbpt==3
(83 real changes made)

. replace   party_close=.         if        prtclbpt==4
(0 real changes made)

. replace   party_close=.         if        prtclbpt==6
(0 real changes made)

. replace   party_close=.         if        prtclbpt==7
(0 real changes made)

. replace   party_close=7         if        prtclbpt==8
(0 real changes made)

. replace   party_close=5         if        prtclbpt==10
(292 real changes made)

. replace   party_close=3         if        prtclbpt==11
(470 real changes made)

. replace   party_close=.         if        prtclbpt==12
(0 real changes made)

. * Sweden
. replace   party_close=5         if        prtclse== 1
(57 real changes made)

. replace   party_close=4         if        prtclse== 2
(86 real changes made)

. replace   party_close=5         if        prtclse== 3
(38 real changes made)

. replace   party_close=1         if        prtclse== 4
(81 real changes made)

. replace   party_close=6         if        prtclse== 5
(295 real changes made)

. replace   party_close=3         if        prtclse== 6
(468 real changes made)

. replace   party_close=2         if        prtclse== 7
(86 real changes made)

. replace   party_close=0         if        prtclse== 8
(40 real changes made)

. 
. * Definition of value labels
. label def party_close 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Right-Wing"

. label val party_close party_close

. 
. 
. *** Voter participation
. * Creation of variable 
. gen voted=vote==1

. replace voted=. if vote>2
(2763 real changes made, 2763 to missing)

. lab var voted "Voter participation"

. * Definition of value label
. lab define voted 1 "Voter" 0 "Non-voter"

. lab values voted voted

. 
. 
. save "ESSrecoded4.dta", replace
file ESSrecoded4.dta saved

. 
. *----------------------------------------------------------------------------------------*
. *       5. prepare/recode ESS5
. *----------------------------------------------------------------------------------------*
. 
. 
. *----------------------------------------------------------------------------------------*
. *       1. Operationalization of variables, round 5 - 2010
. *----------------------------------------------------------------------------------------*
. 
. 
. * Import dataset (from ESS website)
. use ESS5e03_2.dta

. 
. 
. 
. *       1.0 country selection: 
. * AT, BE, CH, GE, DK, SP, FIN, FR, UK, GR, IE, IT, NL, NO, PT, SE
.  
. drop if cntry=="CZ"
(2386 observations deleted)

. drop if cntry=="HU"
(1561 observations deleted)

. drop if cntry=="LU"
(0 observations deleted)

. drop if cntry=="PL"
(1751 observations deleted)

. drop if cntry=="SI"
(1403 observations deleted)

. drop if cntry=="IL"
(2294 observations deleted)

. drop if cntry=="EE"
(1793 observations deleted)

. drop if cntry=="IS"
(0 observations deleted)

. drop if cntry=="SK"
(1856 observations deleted)

. drop if cntry=="TR"
(0 observations deleted)

. drop if cntry=="UA"
(1931 observations deleted)

. drop if cntry=="RU"
(2595 observations deleted)

. drop if cntry=="BG"
(2434 observations deleted)

. drop if cntry=="CY"
(1083 observations deleted)

. drop if cntry=="LV"
(0 observations deleted)

. drop if cntry=="RO"
(0 observations deleted)

. drop if cntry=="HR"
(1649 observations deleted)

. drop if cntry=="LT"
(1677 observations deleted)

. 
. 
. gen at=cntry=="AT"

. lab var at "Country dummy Austria"

. gen be=cntry=="BE"

. lab var be "Country dummy Belgium"

. gen ch=cntry=="CH"

. lab var ch "Country dummy Switzerland"

. gen de=cntry=="DE"

. lab var de "Country dummy Germany"

. gen dk=cntry=="DK"

. lab var dk "Country dummy Denmark"

. gen es=cntry=="ES"

. lab var es "Country dummy Spain"

. gen fi=cntry=="FI"

. lab var fi "Country dummy Finland"

. gen fr=cntry=="FR"

. lab var fr "Country dummy France"

. gen gb=cntry=="GB"

. lab var gb "Country dummy United Kingdom"

. gen gr=cntry=="GR"

. lab var gr "Country dummy Greece"

. gen ie=cntry=="IE"

. lab var ie "Country dummy Ireland"

. gen it=cntry=="IT"

. lab var it "Country dummy Italy"

. gen nl=cntry=="NL"

. lab var nl "Country dummy Netherlands"

. gen no=cntry=="NO"

. lab var no "Country dummy Norway"

. gen pt=cntry=="PT"

. lab var pt "Country dummy Portugal"

. gen se=cntry=="SE"

. lab var se "Country dummy Sweden"

. 
. 
. *******************************
. *   1.1 GLOBALIZATION LOSERS
. *******************************
. 
. ** from Rommel /Walter: combination of offshoreable and low-skill (educlvl und offshore2)
. 
. * Creation of variable
. gen educyrs=eduyrs

. lab var educyrs "Years of Education"

. * Recoding of variable
. replace educyrs=25 if eduyrs>25 & eduyrs<.
(381 real changes made)

. 
. 
. ***** 2.2 Education level
. *----------------------------------------------------------------------------------------*
. 
. * Creation of variable
. gen educlvl=edulvlb

. lab var educlvl "Education level"

. * Recoding of variable and definition of value label
. recode educlvl (0=1) (113=1) (129=1) (212=2) (213=2) (221=2) (222=2) (229=2) (311=3) ///
>         (312=3) (313=3) (321=3) (322=3) (323=3) (412=4) (413=4) (421=4) (422=4) (423=4) ///
>         (510=5) (520=5) (610=5) (620=5) (710=5) (720=5) (800=5) (5555=.)
(educlvl: 27963 changes made)

. label define educlvl 1 "Less than lower secondary education" ///
>         2 "Lower secondary education completed" ///
>         3 "Upper secondary education completed" ///
>         4 "Post-secondary, non-tertiary education completed" ///
>         5 "Tertiary education completed"

. label values educlvl educlvl

. 
. 
. *** Creation of 4-digit ISCO-Code
. gen isco=iscoco

. lab var isco "4-digit ISCO-code"

. 
. *** Metric offshoreability variable     
. * Creation of variable
. gen offshore=.
(28045 missing values generated)

. replace offshore=0 if isco<.
(28045 real changes made)

. replace offshore=49 if isco==1142
(1 real change made)

. replace offshore=55 if isco==1222
(95 real changes made)

. replace offshore=28 if isco==1226
(22 real changes made)

. replace offshore=55 if isco==1228
(11 real changes made)

. replace offshore=83 if isco==1231
(134 real changes made)

. replace offshore=49 if isco==1232
(50 real changes made)

. replace offshore=40 if isco==1233
(131 real changes made)

. replace offshore=53 if isco==1234
(20 real changes made)

. replace offshore=49 if isco==1235
(30 real changes made)

. replace offshore=55 if isco==1236
(42 real changes made)

. replace offshore=55 if isco==1237
(27 real changes made)

. replace offshore=55 if isco==1311
(67 real changes made)

. replace offshore=55 if isco==1312
(32 real changes made)

. replace offshore=55 if isco==1313
(63 real changes made)

. replace offshore=55 if isco==1314
(363 real changes made)

. replace offshore=55 if isco==1315
(141 real changes made)

. replace offshore=48 if isco==1316
(49 real changes made)

. replace offshore=52 if isco==1317
(73 real changes made)

. replace offshore=55 if isco==1318
(42 real changes made)

. replace offshore=55 if isco==1319
(217 real changes made)

. replace offshore=66 if isco==2111
(3 real changes made)

. replace offshore=74 if isco==2112
(3 real changes made)

. replace offshore=66 if isco==2113
(20 real changes made)

. replace offshore=66 if isco==2114
(5 real changes made)

. replace offshore=89 if isco==2121
(3 real changes made)

. replace offshore=96 if isco==2122
(13 real changes made)

. replace offshore=83 if isco==2131
(146 real changes made)

. replace offshore=90 if isco==2139
(44 real changes made)

. replace offshore=25 if isco==2141
(76 real changes made)

. replace offshore=64 if isco==2143
(31 real changes made)

. replace offshore=74 if isco==2144
(30 real changes made)

. replace offshore=72 if isco==2146
(9 real changes made)

. replace offshore=69 if isco==2147
(7 real changes made)

. replace offshore=86 if isco==2148
(22 real changes made)

. replace offshore=71 if isco==2149
(85 real changes made)

. replace offshore=81 if isco==2211
(33 real changes made)

. replace offshore=83 if isco==2212
(7 real changes made)

. replace offshore=72 if isco==2411
(155 real changes made)

. replace offshore=50 if isco==2419
(240 real changes made)

. replace offshore=74 if isco==2421
(66 real changes made)

. replace offshore=67 if isco==2444
(33 real changes made)

. replace offshore=90 if isco==2451
(96 real changes made)

. replace offshore=78 if isco==2452
(44 real changes made)

. replace offshore=25 if isco==2453
(33 real changes made)

. replace offshore=48 if isco==2455
(28 real changes made)

. replace offshore=47 if isco==3111
(49 real changes made)

. replace offshore=47 if isco==3113
(29 real changes made)

. replace offshore=47 if isco==3114
(54 real changes made)

. replace offshore=72 if isco==3115
(55 real changes made)

. replace offshore=47 if isco==3116
(17 real changes made)

. replace offshore=94 if isco==3118
(58 real changes made)

. replace offshore=54 if isco==3119
(96 real changes made)

. replace offshore=75 if isco==3121
(66 real changes made)

. replace offshore=84 if isco==3122
(23 real changes made)

. replace offshore=68 if isco==3123
(5 real changes made)

. replace offshore=36 if isco==3131
(30 real changes made)

. replace offshore=36 if isco==3132
(10 real changes made)

. replace offshore=46 if isco==3133
(9 real changes made)

. replace offshore=34 if isco==3139
(3 real changes made)

. replace offshore=52 if isco==3141
(10 real changes made)

. replace offshore=60 if isco==3152
(98 real changes made)

. replace offshore=55 if isco==3211
(43 real changes made)

. replace offshore=55 if isco==3212
(11 real changes made)

. replace offshore=44 if isco==3213
(9 real changes made)

. replace offshore=32 if isco==3228
(42 real changes made)

. replace offshore=51 if isco==3411
(30 real changes made)

. replace offshore=85 if isco==3412
(81 real changes made)

. replace offshore=50 if isco==3414
(13 real changes made)

. replace offshore=55 if isco==3416
(56 real changes made)

. replace offshore=59 if isco==3419
(148 real changes made)

. replace offshore=51 if isco==3421
(7 real changes made)

. replace offshore=48 if isco==3422
(7 real changes made)

. replace offshore=38 if isco==3431
(316 real changes made)

. replace offshore=51 if isco==3432
(87 real changes made)

. replace offshore=84 if isco==3433
(130 real changes made)

. replace offshore=84 if isco==3434
(13 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=100 if isco==3442
(21 real changes made)

. replace offshore=85 if isco==3471
(85 real changes made)

. replace offshore=30 if isco==3472
(4 real changes made)

. replace offshore=95 if isco==4111
(23 real changes made)

. replace offshore=94 if isco==4112
(6 real changes made)

. replace offshore=100 if isco==4113
(22 real changes made)

. replace offshore=71 if isco==4114
(4 real changes made)

. replace offshore=38 if isco==4115
(379 real changes made)

. replace offshore=84 if isco==4121
(282 real changes made)

. replace offshore=54 if isco==4122
(116 real changes made)

. replace offshore=31 if isco==4131
(196 real changes made)

. replace offshore=67 if isco==4132
(81 real changes made)

. replace offshore=67 if isco==4133
(57 real changes made)

. replace offshore=46 if isco==4141
(29 real changes made)

. replace offshore=26 if isco==4142
(105 real changes made)

. replace offshore=95 if isco==4143
(3 real changes made)

. replace offshore=54 if isco==4144
(5 real changes made)

. replace offshore=54 if isco==4190
(463 real changes made)

. replace offshore=94 if isco==4211
(120 real changes made)

. replace offshore=54 if isco==4214
(0 real changes made)

. replace offshore=65 if isco==4215
(13 real changes made)

. replace offshore=72 if isco==4221
(14 real changes made)

. replace offshore=54 if isco==4222
(142 real changes made)

. replace offshore=50 if isco==4223
(85 real changes made)

. replace offshore=86 if isco==5113
(13 real changes made)

. replace offshore=59 if isco==6142
(1 real change made)

. replace offshore=36 if isco==7111
(9 real changes made)

. replace offshore=35 if isco==7112
(4 real changes made)

. replace offshore=36 if isco==7113
(10 real changes made)

. replace offshore=65 if isco==7211
(6 real changes made)

. replace offshore=69 if isco==7212
(96 real changes made)

. replace offshore=70 if isco==7213
(47 real changes made)

. replace offshore=70 if isco==7222
(71 real changes made)

. replace offshore=68 if isco==7223
(87 real changes made)

. replace offshore=68 if isco==7224
(13 real changes made)

. replace offshore=26 if isco==7311
(29 real changes made)

. replace offshore=64 if isco==7313
(19 real changes made)

. replace offshore=69 if isco==7321
(11 real changes made)

. replace offshore=69 if isco==7322
(12 real changes made)

. replace offshore=68 if isco==7323
(0 real changes made)

. replace offshore=68 if isco==7324
(7 real changes made)

. replace offshore=60 if isco==7331
(14 real changes made)

. replace offshore=75 if isco==7332
(11 real changes made)

. replace offshore=59 if isco==7341
(20 real changes made)

. replace offshore=59 if isco==7342
(5 real changes made)

. replace offshore=59 if isco==7343
(12 real changes made)

. replace offshore=34 if isco==7344
(11 real changes made)

. replace offshore=59 if isco==7345
(14 real changes made)

. replace offshore=75 if isco==7346
(3 real changes made)

. replace offshore=68 if isco==7413
(6 real changes made)

. replace offshore=27 if isco==7414
(4 real changes made)

. replace offshore=55 if isco==7415
(0 real changes made)

. replace offshore=43 if isco==7421
(10 real changes made)

. replace offshore=57 if isco==7422
(78 real changes made)

. replace offshore=57 if isco==7423
(7 real changes made)

. replace offshore=66 if isco==7424
(1 real change made)

. replace offshore=75 if isco==7431
(4 real changes made)

. replace offshore=75 if isco==7432
(22 real changes made)

. replace offshore=75 if isco==7433
(103 real changes made)

. replace offshore=73 if isco==7434
(3 real changes made)

. replace offshore=75 if isco==7435
(12 real changes made)

. replace offshore=75 if isco==7436
(108 real changes made)

. replace offshore=57 if isco==7437
(20 real changes made)

. replace offshore=75 if isco==7441
(5 real changes made)

. replace offshore=72 if isco==7442
(21 real changes made)

. replace offshore=36 if isco==8111
(7 real changes made)

. replace offshore=36 if isco==8112
(3 real changes made)

. replace offshore=36 if isco==8113
(6 real changes made)

. replace offshore=59 if isco==8121
(8 real changes made)

. replace offshore=68 if isco==8122
(7 real changes made)

. replace offshore=70 if isco==8123
(3 real changes made)

. replace offshore=68 if isco==8124
(4 real changes made)

. replace offshore=69 if isco==8131
(7 real changes made)

. replace offshore=68 if isco==8139
(2 real changes made)

. replace offshore=57 if isco==8141
(20 real changes made)

. replace offshore=68 if isco==8142
(4 real changes made)

. replace offshore=68 if isco==8143
(17 real changes made)

. replace offshore=68 if isco==8151
(1 real change made)

. replace offshore=70 if isco==8152
(1 real change made)

. replace offshore=68 if isco==8153
(0 real changes made)

. replace offshore=68 if isco==8154
(0 real changes made)

. replace offshore=29 if isco==8155
(4 real changes made)

. replace offshore=68 if isco==8159
(6 real changes made)

. replace offshore=42 if isco==8161
(11 real changes made)

. replace offshore=55 if isco==8162
(10 real changes made)

. replace offshore=29 if isco==8163
(9 real changes made)

. replace offshore=64 if isco==8171
(0 real changes made)

. replace offshore=68 if isco==8172
(0 real changes made)

. replace offshore=68 if isco==8211
(50 real changes made)

. replace offshore=68 if isco==8212
(11 real changes made)

. replace offshore=68 if isco==8221
(10 real changes made)

. replace offshore=35 if isco==8222
(3 real changes made)

. replace offshore=68 if isco==8223
(7 real changes made)

. replace offshore=41 if isco==8224
(4 real changes made)

. replace offshore=29 if isco==8229
(4 real changes made)

. replace offshore=69 if isco==8231
(9 real changes made)

. replace offshore=68 if isco==8232
(23 real changes made)

. replace offshore=57 if isco==8240
(11 real changes made)

. replace offshore=58 if isco==8251
(29 real changes made)

. replace offshore=59 if isco==8252
(9 real changes made)

. replace offshore=68 if isco==8253
(12 real changes made)

. replace offshore=75 if isco==8261
(27 real changes made)

. replace offshore=75 if isco==8262
(27 real changes made)

. replace offshore=75 if isco==8263
(52 real changes made)

. replace offshore=75 if isco==8264
(27 real changes made)

. replace offshore=75 if isco==8265
(1 real change made)

. replace offshore=75 if isco==8266
(5 real changes made)

. replace offshore=75 if isco==8269
(28 real changes made)

. replace offshore=27 if isco==8271
(30 real changes made)

. replace offshore=68 if isco==8272
(10 real changes made)

. replace offshore=68 if isco==8273
(3 real changes made)

. replace offshore=30 if isco==8274
(26 real changes made)

. replace offshore=31 if isco==8275
(10 real changes made)

. replace offshore=68 if isco==8276
(1 real change made)

. replace offshore=27 if isco==8277
(0 real changes made)

. replace offshore=68 if isco==8278
(9 real changes made)

. replace offshore=66 if isco==8281
(26 real changes made)

. replace offshore=66 if isco==8282
(22 real changes made)

. replace offshore=66 if isco==8283
(23 real changes made)

. replace offshore=68 if isco==8284
(12 real changes made)

. replace offshore=57 if isco==8285
(11 real changes made)

. replace offshore=64 if isco==8286
(3 real changes made)

. replace offshore=68 if isco==8290
(186 real changes made)

. replace offshore=34 if isco==8340
(23 real changes made)

. replace offshore=95 if isco==9113
(26 real changes made)

. replace offshore=64 if isco==9321
(0 real changes made)

. replace offshore=29 if isco==9333
(0 real changes made)

. replace offshore=55 if isco==1227
(37 real changes made)

. replace offshore=89 if isco==2121
(0 real changes made)

. replace offshore=100 if isco==2132
(0 real changes made)

. replace offshore=70 if isco==2145
(69 real changes made)

. replace offshore=71 if isco==2149
(0 real changes made)

. replace offshore=81 if isco==2211
(0 real changes made)

. replace offshore=46 if isco==2412
(62 real changes made)

. replace offshore=50 if isco==2419
(0 real changes made)

. replace offshore=33 if isco==2432
(30 real changes made)

. replace offshore=89 if isco==2441
(27 real changes made)

. replace offshore=48 if isco==2455
(0 real changes made)

. replace offshore=72 if isco==3115
(0 real changes made)

. replace offshore=54 if isco==3119
(0 real changes made)

. replace offshore=46 if isco==3133
(0 real changes made)

. replace offshore=34 if isco==3139
(0 real changes made)

. replace offshore=34 if isco==3224
(16 real changes made)

. replace offshore=51 if isco==3411
(0 real changes made)

. replace offshore=25 if isco==3415
(235 real changes made)

. replace offshore=50 if isco==3417
(7 real changes made)

. replace offshore=59 if isco==3419
(0 real changes made)

. replace offshore=51 if isco==3432
(0 real changes made)

. replace offshore=54 if isco==3439
(0 real changes made)

. replace offshore=90 if isco==3460
(174 real changes made)

. replace offshore=54 if isco==4122
(0 real changes made)

. replace offshore=31 if isco==4131
(0 real changes made)

. replace offshore=67 if isco==4132
(0 real changes made)

. replace offshore=46 if isco==4141
(0 real changes made)

. replace offshore=26 if isco==4142
(0 real changes made)

. replace offshore=54 if isco==4222
(0 real changes made)

. replace offshore=68 if isco==7141
(125 real changes made)

. replace offshore=68 if isco==7224
(0 real changes made)

. replace offshore=65 if isco==7241
(132 real changes made)

. replace offshore=34 if isco==7344
(0 real changes made)

. replace offshore=72 if isco==7442
(0 real changes made)

. replace offshore=68 if isco==8122
(0 real changes made)

. replace offshore=68 if isco==8139
(0 real changes made)

. replace offshore=42 if isco==8161
(0 real changes made)

. replace offshore=68 if isco==8211
(0 real changes made)

. replace offshore=68 if isco==8223
(0 real changes made)

. replace offshore=41 if isco==8224
(0 real changes made)

. replace offshore=57 if isco==8240
(0 real changes made)

. replace offshore=58 if isco==8251
(0 real changes made)

. replace offshore=75 if isco==8269
(0 real changes made)

. replace offshore=66 if isco==8281
(0 real changes made)

. replace offshore=66 if isco==8283
(0 real changes made)

. replace offshore=68 if isco==8284
(0 real changes made)

. replace offshore=68 if isco==8290
(0 real changes made)

. replace offshore=70 if isco==9322
(0 real changes made)

. lab var offshore "Offshoring Potential (Blinder 2007), metric"

. 
. *** Creation of ordinal (4-point scale) offshoreability variable
. * Creation of variable
. gen offshore4=.
(28045 missing values generated)

. replace offshore4=4 if offshore<.
(28045 real changes made)

. replace offshore4=3 if offshore<75
(25895 real changes made)

. replace offshore4=2 if offshore<50
(20868 real changes made)

. replace offshore4=1 if offshore<25
(18600 real changes made)

. lab var offshore4 "Offshoring Potential (Blinder 2007), ordinal"

. * Definition of value label
. lab define offshore4 1 "0-24%" 2 "5-49%" 3 "50-74%" 4 "75-100%"

. lab values offshore4 offshore4

. 
. *** Creation of dichotomous offshoreability variable
. * Creation of variable
. gen offshore2=.
(28045 missing values generated)

. replace offshore2=1 if offshore>0 & offshore<.
(9445 real changes made)

. replace offshore2=0 if offshore==0
(18600 real changes made)

. lab var offshore2 "Offshoring Potential (Blinder 2007), dichotomous"

. * Definition of value label
. lab define offshore2 0 "Not offshoreable" 1 "Offshoreable"

. lab values offshore2 offshore2

. 
. 
. ***********************
. 
. *** Creation of globalization loser variable 1 : low-skilled offshoreable
. * Creation of variable
. gen glob_losers1=.
(28045 missing values generated)

. replace glob_losers1=1 if offshore2==1 & educlvl<3
(2556 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl<3
(7608 real changes made)

. replace glob_losers1=0 if offshore2==1 & educlvl>2
(6889 real changes made)

. replace glob_losers1=0 if offshore2==0 & educlvl>2
(10992 real changes made)

. lab var glob_losers1 "Globalization losers; lowskilled exposed "

. * Definition of value label
. lab define glob_losers1 1 "glob loser (l-s off)" 0 "not loser"

. lab values glob_losers1 glob_losers1

. 
. 
. 
. *** Creation of winner variable 1: low-skilled sheltered
. * Creation of variable
. gen glob_winners1=.
(28045 missing values generated)

. replace glob_winners1 =0 if offshore2==1 & educlvl<3
(2556 real changes made)

. replace glob_winners1 =1 if offshore2==0 & educlvl<3
(7608 real changes made)

. replace glob_winners1 =0 if offshore2==1 & educlvl>2
(6889 real changes made)

. replace glob_winners1 =0 if offshore2==0 & educlvl>2
(10992 real changes made)

. lab var glob_winners1 "Globalization winners; lowskilled sheltered "

. * Definition of value label
. lab define glob_winners1 1 "glob winners (l-s sheltered)" 0 "not winner"

. lab values glob_winners1 glob_losers1

. 
. 
. 
. ************************************
. *       1.2 MODERNIZATION LOSERS
. 
. * Oesch 16-classes for respondents only (according to syntax on his website)
. 
. ****************************************************************************************
. * Respondent's Oesch class position
. * Recode and create variables used to construct class variable for respondents
. * Variables used to construct class variable for respondents: iscoco, emplrel, emplno
. ****************************************************************************************
. 
. **** Recode occupation variable (isco88 com 4-digit) for respondents
. 
. tab iscoco

               Occupation, ISCO88 (com) |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                           Armed forces |         81        0.29        0.29
Legislators, senior officials and manag |         24        0.09        0.37
       Legislators and senior officials |          9        0.03        0.41
Legislators, senior government official |         55        0.20        0.60
Senior officials of special-interest or |          6        0.02        0.62
Senior officials of political-party org |          3        0.01        0.63
Senior officials of economic-interest o |          1        0.00        0.64
 Senior off human, special-interest org |          3        0.01        0.65
                     Corporate managers |         11        0.04        0.69
         Directors and chief executives |        172        0.61        1.30
     Production and operations managers |         23        0.08        1.38
Managers agriculture,hunting,forestry,f |          9        0.03        1.42
              Managers in manufacturing |         95        0.34        1.75
               Managers in construction |         33        0.12        1.87
 Managers in wholesale and retail trade |         44        0.16        2.03
     Managers in restaurants and hotels |         28        0.10        2.13
Managers transport,storage,communicatio |         22        0.08        2.21
Managers in business services enterpris |         37        0.13        2.34
Managers personal care,cleaning,rel ser |         11        0.04        2.38
      Managers not elsewhere classified |        109        0.39        2.77
              Other specialist managers |         20        0.07        2.84
   Finance and administration  managers |        134        0.48        3.32
Personnel and industrial relations mana |         50        0.18        3.49
           Sales and marketing managers |        131        0.47        3.96
Advertising and public relations manage |         20        0.07        4.03
      Supply and distribution  managers |         30        0.11        4.14
            Computing services managers |         42        0.15        4.29
      Research and development managers |         27        0.10        4.39
Oth spec managers not elsewhere classif |         78        0.28        4.66
          Managers of small enterprises |         19        0.07        4.73
          Managers of small enterprises |          9        0.03        4.76
Mngr small ent agr,hunting,forestry,fis |         67        0.24        5.00
        Mngr small ent in manufacturing |         32        0.11        5.12
         Mngr small ent in construction |         63        0.22        5.34
Mngr small ent wholesale and retail tra |        363        1.29        6.64
Mngr small ent of restaurants and hotel |        141        0.50        7.14
     Mngr small ent transp,storage,comm |         49        0.17        7.31
Mngr small ent of business serv enterpr |         73        0.26        7.57
Mngr small ent pers care,cleaning,rel s |         42        0.15        7.72
Mngr small ent not elsewhere classified |        217        0.77        8.50
                          Professionals |         17        0.06        8.56
Phys, mathem, engin science professiona |         10        0.04        8.59
Physics, chemists, related professional |          3        0.01        8.60
             Physicists and astronomers |          3        0.01        8.61
                         Meteorologists |          3        0.01        8.63
                               Chemists |         20        0.07        8.70
           Geologists and geophysicists |          5        0.02        8.71
Mathematicians and related professional |          3        0.01        8.73
                          Statisticians |         13        0.05        8.77
                Computing professionals |         59        0.21        8.98
Comp systems designers,analysts,program |        146        0.52        9.50
Comp professionals not elsewhere classi |         44        0.16        9.66
Architects,engineers,related profession |         26        0.09        9.75
  Architects, town and traffic planners |         76        0.27       10.02
                        Civil engineers |         66        0.24       10.26
                   Electrical engineers |         31        0.11       10.37
Electronics, telecommunications enginee |         30        0.11       10.48
                   Mechanical engineers |         69        0.25       10.72
                     Chemical engineers |          9        0.03       10.75
Mining engineers, metall,rel profession |          7        0.02       10.78
            Cartographers and surveyors |         22        0.08       10.86
Arch, engin,rel prof not elsewhere clas |         85        0.30       11.16
  Life science and health professionals |          6        0.02       11.18
             Life science professionals |          1        0.00       11.19
Biol,botan,zool and related professiona |         33        0.12       11.30
Pharm, pathol and related professionals |          7        0.02       11.33
  Agronomists and related professionals |         16        0.06       11.39
  Health professionals (except nursing) |          2        0.01       11.39
                        Medical doctors |        133        0.47       11.87
                               Dentists |         27        0.10       11.96
                          Veterinarians |          8        0.03       11.99
                            Pharmacists |         32        0.11       12.11
Health prof (not nursing) not elsew cla |         27        0.10       12.20
    Nursing and midwifery professionals |        232        0.83       13.03
                 Teaching professionals |        120        0.43       13.46
   Coll,univ, higher educ teaching prof |        136        0.48       13.94
Secondary education teaching profession |        416        1.48       15.43
Primary and pre-primary educ teaching p |         42        0.15       15.57
Primary education teaching professional |        254        0.91       16.48
Pre-primary educ teaching professionals |         44        0.16       16.64
Special education teaching professional |         46        0.16       16.80
           Other teaching professionals |          5        0.02       16.82
          Education methods specialists |         25        0.09       16.91
                      School inspectors |         12        0.04       16.95
Other teaching prof not elsewhere class |        113        0.40       17.35
                    Other professionals |          4        0.01       17.37
                 Business professionals |         13        0.05       17.41
                            Accountants |        155        0.55       17.97
    Personnel and careers professionals |         62        0.22       18.19
 Business prof not elsewhere classified |        240        0.86       19.04
                    Legal professionals |          8        0.03       19.07
                                Lawyers |         66        0.24       19.31
                                 Judges |         15        0.05       19.36
    Legal prof not elsewhere classified |         23        0.08       19.44
   Archiv,libr,related information prof |          2        0.01       19.45
                Archivists and curators |         14        0.05       19.50
    Librarians,related information prof |         30        0.11       19.61
Social science and related professional |          2        0.01       19.61
                             Economists |         27        0.10       19.71
Sociologists, anthropologists, rel prof |         11        0.04       19.75
Philosophers,historians,political scien |          7        0.02       19.78
Philologists, translators and interpret |         33        0.12       19.89
                          Psychologists |         50        0.18       20.07
              Social work professionals |        121        0.43       20.50
Writers and creative or performing arti |          4        0.01       20.52
 Authors, journalists and other writers |         96        0.34       20.86
Sculptors, painters and related artists |         44        0.16       21.02
       Composers, musicians and singers |         33        0.12       21.13
             Choreographers and dancers |          2        0.01       21.14
Film, stage and related actors and dire |         28        0.10       21.24
                Religious professionals |         24        0.09       21.33
Public service administrative professio |        106        0.38       21.70
Technicians and associate professionals |          7        0.02       21.73
Physical,engineering science associate  |         11        0.04       21.77
Physical,engineering science technician |         20        0.07       21.84
Chemical and physical science technicia |         49        0.17       22.01
          Civil engineering technicians |         66        0.24       22.25
     Electrical engineering technicians |         29        0.10       22.35
Electronics,telecom engineering technic |         54        0.19       22.55
     Mechanical engineering technicians |         55        0.20       22.74
       Chemical engineering technicians |         17        0.06       22.80
   Mining and metallurgical technicians |          7        0.02       22.83
                        Draughtspersons |         58        0.21       23.03
Phys, engin science techn not elsew cla |         96        0.34       23.38
       Computer associate professionals |         47        0.17       23.54
                    Computer assistants |         66        0.24       23.78
           Computer equipment operators |         23        0.08       23.86
           Industrial robot controllers |          5        0.02       23.88
Optical and electronic equipment operat |          1        0.00       23.88
 Photogr,image,sound rec equipment oper |         30        0.11       23.99
Broadcasting,telecom equipment operator |         10        0.04       24.03
            Medical equipment operators |          9        0.03       24.06
Optical,electr equipm oper not elsew cl |          3        0.01       24.07
Ship, aircraft controllers and technici |          1        0.00       24.07
                       Ships' engineers |         10        0.04       24.11
        Ships' deck officers and pilots |         20        0.07       24.18
Aircraft pilots, related associated pro |          3        0.01       24.19
                Air traffic controllers |         11        0.04       24.23
         Air traffic safety technicians |          1        0.00       24.23
          Safety and quality inspectors |          7        0.02       24.26
           Building and fire inspectors |         12        0.04       24.30
  Safety, health and quality inspectors |         98        0.35       24.65
 Life,science and health associate prof |         10        0.04       24.69
Life,science techn and rel associate pr |          3        0.01       24.70
               Life science technicians |         43        0.15       24.85
      Agronomy and forestry technicians |         11        0.04       24.89
          Farming and forestry advisers |          9        0.03       24.92
 Health associate prof (except nursing) |          1        0.00       24.92
                     Medical assistants |         30        0.11       25.03
Hygienists, health environmental office |         11        0.04       25.07
           Dieticians and nutritionists |         12        0.04       25.11
             Optometrists and opticians |         16        0.06       25.17
                      Dental assistants |         26        0.09       25.26
Physiotherapists and rel associate prof |         72        0.26       25.52
                  Veterinary assistants |         10        0.04       25.56
              Pharmaceutical assistants |         42        0.15       25.71
Health ass prof excpt nursing not else  |         68        0.24       25.95
       Nursing midwifery associate prof |          7        0.02       25.97
        Nursing associate professionals |        361        1.29       27.26
      Midwifery associate professionals |         24        0.09       27.35
       Teaching associate professionals |         10        0.04       27.38
Primary education teaching associate pr |         81        0.29       27.67
Pre-primary edu teaching associate prof |        115        0.41       28.08
Special education teaching associate pr |         18        0.06       28.14
 Other teaching associate professionals |         90        0.32       28.46
          Other associate professionals |         27        0.10       28.56
Finance and sales associate professiona |         47        0.17       28.73
Securities and finance dealers and brok |         30        0.11       28.84
              Insurance representatives |         81        0.29       29.12
                          Estate agents |         45        0.16       29.29
      Travel consultants and organisers |         13        0.05       29.33
     Technical and commercial sales rep |        235        0.84       30.17
                                 Buyers |         56        0.20       30.37
    Appraisers, valuers and auctioneers |          7        0.02       30.39
Finance,sales associate prof not else c |        148        0.53       30.92
Business services agents and trade brok |         11        0.04       30.96
                          Trade brokers |          7        0.02       30.99
         Clearing and forwarding agents |          7        0.02       31.01
Employment agents and labour contractor |         30        0.11       31.12
Busines,serv,agnts,trde brokr not else  |         25        0.09       31.21
 Administrative associate professionals |        103        0.37       31.57
Adm secretaries, related associate prof |        316        1.13       32.70
  Legal related business associate prof |         87        0.31       33.01
                            Bookkeepers |        130        0.46       33.47
Statistical, mathemat rel associate pro |         13        0.05       33.52
  Custom,tax,related gov associate prof |          9        0.03       33.55
          Customs and border inspectors |         10        0.04       33.59
    Government tax and excise officials |         21        0.07       33.66
   Government social benefits officials |         21        0.07       33.74
         Government licensing officials |          9        0.03       33.77
Custom,tax,rel gov assoc prof not else  |         18        0.06       33.83
       Police inspectors and detectives |         48        0.17       34.01
    Social work associate professionals |        174        0.62       34.63
Artistic,entertainment,sports associate |          5        0.02       34.64
    Decorators and commercial designers |         85        0.30       34.95
 Radio, television and other announcers |          4        0.01       34.96
Street,nightclub,rel musicians,singers, |         10        0.04       35.00
Clowns,magicians,acrobats, rel associat |          5        0.02       35.02
Athletes,sportspers, related associate  |         58        0.21       35.22
      Religious associate professionals |         11        0.04       35.26
                                 Clerks |         69        0.25       35.51
                          Office clerks |         22        0.08       35.59
Secretaries and keyboard-operating cler |         84        0.30       35.89
              Stenographers and typists |         23        0.08       35.97
   Word-processor and related operators |          6        0.02       35.99
                   Data entry operators |         22        0.08       36.07
          Calculating-machine operators |          4        0.01       36.08
                            Secretaries |        379        1.35       37.43
                       Numerical clerks |         61        0.22       37.65
      Accounting and bookkeeping clerks |        282        1.01       38.66
         Statistical and finance clerks |        116        0.41       39.07
Material-recording and transport clerks |         17        0.06       39.13
                           Stock clerks |        196        0.70       39.83
                      Production clerks |         81        0.29       40.12
                       Transport clerks |         57        0.20       40.32
              Library and filing clerks |         29        0.10       40.42
       Mail carriers and sorting clerks |        105        0.37       40.80
Coding, proof-reading and related clerk |          3        0.01       40.81
            Scribes and related workers |          5        0.02       40.83
                    Other office clerks |        463        1.65       42.48
               Customer services clerks |         10        0.04       42.51
   Cashiers, tellers and related clerks |         28        0.10       42.61
             Cashiers and ticket clerks |        120        0.43       43.04
       Tellers and other counter clerks |         56        0.20       43.24
               Bookmakers and croupiers |          8        0.03       43.27
    Debt-collectors and related workers |         13        0.05       43.32
              Client information clerks |         34        0.12       43.44
       Travel agency and related clerks |         14        0.05       43.49
   Receptionists and information clerks |        142        0.51       43.99
        Telephone switchboard operators |         85        0.30       44.30
Service workers,shop, market sales work |         23        0.08       44.38
Personal and protective services worker |         24        0.09       44.46
  Travel attendants and related workers |          1        0.00       44.47
  Travel attendants and travel stewards |         31        0.11       44.58
                   Transport conductors |         18        0.06       44.64
                          Travel guides |         13        0.05       44.69
Housekeeping, restaurant services worke |         10        0.04       44.72
       Housekeepers and related workers |         80        0.29       45.01
                                  Cooks |        338        1.21       46.22
     Waiters, waitresses and bartenders |        455        1.62       47.84
      Personal care and related workers |         24        0.09       47.92
                     Child-care workers |        335        1.19       49.12
Institution-based personal care workers |        354        1.26       50.38
       Home-based personal care workers |        310        1.11       51.49
Personal care,related workers not else  |         89        0.32       51.80
        Other personal services workers |          7        0.02       51.83
Hairdress,barber,beautician, related wo |        205        0.73       52.56
                  Companions and valets |         13        0.05       52.60
              Undertakers and embalmers |          6        0.02       52.63
Other pers service workers not else cla |         64        0.23       52.85
            Protective services workers |          5        0.02       52.87
                          Fire-fighters |         43        0.15       53.03
                        Police officers |         95        0.34       53.36
                          Prison guards |         24        0.09       53.45
Protective services workers not else cl |         93        0.33       53.78
 Models, salespersons and demonstrators |         74        0.26       54.05
               Fashion and other models |          5        0.02       54.06
Shop,stall,market salespers, demonstrat |      1,483        5.29       59.35
Skilled agricultural and fishery worker |         10        0.04       59.39
      Market gardeners and crop growers |          6        0.02       59.41
       Field crop and vegetable growers |        254        0.91       60.31
Gardeners, horticultural, nursery growe |        153        0.55       60.86
   Animal producers and related workers |          1        0.00       60.86
          Dairy and livestock producers |         82        0.29       61.16
                      Poultry producers |          9        0.03       61.19
Animal prod, related workers not else c |         25        0.09       61.28
              Crop and animal producers |        272        0.97       62.25
           Forestry and related workers |         12        0.04       62.29
           Forestry workers and loggers |         16        0.06       62.35
   Charcoal burners and related workers |          1        0.00       62.35
  Fishery workers, hunters and trappers |          7        0.02       62.37
       Aquatic-life cultivation workers |          3        0.01       62.39
Inland and coastal waters fishery worke |          7        0.02       62.41
               Deep-sea fishery workers |          4        0.01       62.42
       Craft and related trades workers |         10        0.04       62.46
 Extraction and building trades workers |          9        0.03       62.49
              Miners and quarry workers |          9        0.03       62.52
                Shotfirers and blasters |          4        0.01       62.54
   Stone splitters, cutters and carvers |         10        0.04       62.57
Building frame and related trades worke |         31        0.11       62.68
                               Builders |         65        0.23       62.92
            Bricklayers and stonemasons |        241        0.86       63.78
Concrete placer,concrete finisher, rel  |         33        0.12       63.89
                 Carpenters and joiners |        212        0.76       64.65
Build frame, rel trade worker not else  |         39        0.14       64.79
Build finishers, related trades workers |          2        0.01       64.80
                                Roofers |         19        0.07       64.86
          Floor layers and tile setters |         33        0.12       64.98
                             Plasterers |         41        0.15       65.13
                     Insulation workers |         16        0.06       65.18
                               Glaziers |         18        0.06       65.25
              Plumbers and pipe fitters |        109        0.39       65.64
      Building and related electricians |        111        0.40       66.03
Build finisher,rel trde work not else c |         22        0.08       66.11
Painter,building struct cleaner,rel trd |          5        0.02       66.13
           Painters and related workers |        125        0.45       66.58
            Building structure cleaners |         13        0.05       66.62
Metal, machinery related trades workers |          6        0.02       66.64
Metalm,welder,sheetmet,structmet prep,r |          9        0.03       66.67
          Metal moulders and coremakers |          6        0.02       66.70
               Welders and flamecutters |         96        0.34       67.04
                    Sheet-metal workers |         47        0.17       67.21
Structural-metal preparers and erectors |         59        0.21       67.42
             Riggers and cable splicers |          3        0.01       67.43
                     Underwater workers |          1        0.00       67.43
Blacksmiths,tool-makers,related trad wo |          1        0.00       67.43
Blacksmith, hammer-smith,forging-press  |         29        0.10       67.54
        Tool-makers and related workers |         71        0.25       67.79
Machine-tool setters and setter-operato |         87        0.31       68.10
Metal wheelgrinder, polisher, tool shar |         13        0.05       68.15
        Machinery mechanics and fitters |         38        0.14       68.28
    Motor vehicle mechanics and fitters |        181        0.65       68.93
  Aircraft engine mechanics and fitters |         13        0.05       68.97
Agric- or industrmachine mechanic and f |         81        0.29       69.26
Electric,electronic equip mech and fitt |         11        0.04       69.30
Electric mechanic, fitters and servicer |        132        0.47       69.77
Electronic mecanic, fitters and service |         64        0.23       70.00
Telegraph, teleph installers and servic |         24        0.09       70.09
Electric line install,repairer,cable jo |         20        0.07       70.16
Precision,handicraft,printing,rel trade |          1        0.00       70.16
Precision workers in metal and rel mate |          5        0.02       70.18
Precision-instrument makers and repaire |         29        0.10       70.28
   Musical instrument makers and tuners |          4        0.01       70.30
   Jewellery and precious-metal workers |         19        0.07       70.37
Potters,glass-makers, related trades wo |          4        0.01       70.38
Abrasive wheel former,potter and rel wo |         11        0.04       70.42
Glass-makers,cutters,grinders and finis |         12        0.04       70.46
Glass,ceramics and rel decorative paint |          7        0.02       70.49
Handicrft work wood,textile,leather,rel |          2        0.01       70.49
Handicrft work in wood and related mate |         14        0.05       70.54
Handicrft work in textile,leather,rel m |         11        0.04       70.58
Craft printing and related trades worke |          1        0.00       70.59
Compositors,typesetters, related worker |         20        0.07       70.66
         Stereotypers and electrotypers |          5        0.02       70.68
         Printing engravers and etchers |         12        0.04       70.72
       Photographic and related workers |         11        0.04       70.76
        Bookbinders and related workers |         14        0.05       70.81
Silk-screen,block,craft textile printer |          3        0.01       70.82
 Other craft and related trades workers |         11        0.04       70.86
Food processing and related trades work |          3        0.01       70.87
Butchers,fishmongers,related food prepa |         63        0.22       71.09
Bakers,pastry-cooks,confectionery maker |         88        0.31       71.41
                 Dairy products workers |          6        0.02       71.43
Fruit, vegetable and related preservers |          4        0.01       71.44
Tobacco preparers,tobacco products make |          2        0.01       71.45
                          Wood treaters |         10        0.04       71.49
      Cabinetmakers and related workers |         78        0.28       71.76
Woodworking machine setter,setter-opera |          7        0.02       71.79
Basketry weavers,brush makers,rel worke |          1        0.00       71.79
 Textile,garment, related trades worker |          4        0.01       71.81
                        Fibre preparers |          4        0.01       71.82
  Weavers, knitters and related workers |         22        0.08       71.90
       Tailors, dressmakers and hatters |        103        0.37       72.27
           Furriers and related workers |          3        0.01       72.28
Textile,leather,rel patternmakers, cutt |         12        0.04       72.32
Sewers, embroiderers and related worker |        108        0.39       72.70
       Upholsterers and related workers |         20        0.07       72.78
 Pelt dressers, tanners and fellmongers |          5        0.02       72.79
        Shoe-makers and related workers |         21        0.07       72.87
Plant and machine operators and assembl |         30        0.11       72.98
 Stationary plant and related operators |          4        0.01       72.99
Mining, mineral-processing-plant operat |          3        0.01       73.00
                 Mining plant operators |          7        0.02       73.03
Mineralore,stone-processing-plant opera |          3        0.01       73.04
Well drillers,borers and related worker |          6        0.02       73.06
       Metal-processing plant operators |          3        0.01       73.07
        Ore and metal furnace operators |          8        0.03       73.10
Metal melters,casters,rolling-mill oper |          7        0.02       73.12
    Metal-heat-treating-plant operators |          3        0.01       73.13
            Metal drawers and extruders |          4        0.01       73.15
Glass, ceramics,related plant operators |          2        0.01       73.15
Glass,ceramics kiln,related machine ope |          7        0.02       73.18
Glass,ceramic,rel plant operat not else |          2        0.01       73.19
Wood-processing, papermaking-plant oper |         12        0.04       73.23
        Wood-processing-plant operators |         20        0.07       73.30
             Paper-pulp plant operators |          4        0.01       73.31
            Papermaking-plant operators |         17        0.06       73.37
    Chemical-processing-plant operators |          6        0.02       73.40
Crush,grind,chemicalmixing machinery op |          1        0.00       73.40
 Chemical-heat-treating-plant operators |          1        0.00       73.40
Petrol,natural gas refin plant operator |          4        0.01       73.42
Chemicalprocess,plant operat not else c |          6        0.02       73.44
Power-Prod. and related plant operators |          3        0.01       73.45
       Power-production plant operators |         11        0.04       73.49
      Steam-engine and boiler operators |         10        0.04       73.52
Incinerator,watertreatment,rel plant op |          9        0.03       73.56
             Industrial robot operators |         17        0.06       73.62
       Machine operators and assemblers |         17        0.06       73.68
 Metal,mineralproducts machine operator |          2        0.01       73.69
                 Machine-tool operators |         50        0.18       73.86
Cement, other mineral prod machine oper |         11        0.04       73.90
Pharmaceutical,toiletry-prod machine op |         10        0.04       73.94
Ammunition,explosive products machine o |          3        0.01       73.95
Metal finish, plating,coatingmachine op |          7        0.02       73.97
Photographic-products machine operators |          4        0.01       73.99
Chemicalprod, machine operat not else c |          4        0.01       74.00
Rubber,plasticproducts machine operator |          3        0.01       74.01
      Rubber-products machine operators |          9        0.03       74.05
     Plastic-products machine operators |         23        0.08       74.13
        Wood-products machine operators |         11        0.04       74.17
Printing,binding,paperprod machine oper |          1        0.00       74.17
             Printing-machine operators |         29        0.10       74.27
          Bookbinding-machine operators |          9        0.03       74.31
       Paper-products machine operators |         12        0.04       74.35
Textile,fur,leatherprod machine operato |          6        0.02       74.37
Fibreprep,spinning winding-machine oper |         27        0.10       74.47
Weaving- and knitting-machine operators |         27        0.10       74.56
               Sewing-machine operators |         52        0.19       74.75
Bleaching,dyeing,cleaning-machine opera |         27        0.10       74.84
         Fur,leatherprep machine operat |          1        0.00       74.85
Shoemaking- and related machine operato |          5        0.02       74.87
Textl,fur,leatherprod mach operat n els |         28        0.10       74.97
 Food,related products machine operator |         24        0.09       75.05
     Meat, fishprocess machine operator |         30        0.11       75.16
       Dairy-products machine operators |         10        0.04       75.19
Grain- and spice-milling-machine operat |          3        0.01       75.20
Baked g,cereal,chocolateprod machine op |         26        0.09       75.30
Fruit,vegetable,nutprocess-machine oper |         10        0.04       75.33
     Sugar production machine operators |          1        0.00       75.34
Brewer,wine, other beverage machine ope |          9        0.03       75.37
   Tobacco production machine operators |          8        0.03       75.40
                             Assemblers |         11        0.04       75.44
        Mechanical-machinery assemblers |         26        0.09       75.53
        Electrical-equipment assemblers |         22        0.08       75.61
        Electronic-equipment assemblers |         23        0.08       75.69
   Metal,rubber,plastic-prod assemblers |         12        0.04       75.73
   Wood and related products assemblers |         11        0.04       75.77
Paperboard,textile, related prod assemb |          3        0.01       75.78
          Composite products assemblers |          3        0.01       75.79
    Other machine operat not else class |        186        0.66       76.46
              Locomotive engine drivers |         26        0.09       76.55
Railway brakers, signallers and shunter |          8        0.03       76.58
                  Motor vehicle drivers |         28        0.10       76.68
                     Motorcycle drivers |          4        0.01       76.69
              Car, taxi and van drivers |        186        0.66       77.35
                   Bus and tram drivers |         87        0.31       77.66
          Heavy truck and lorry drivers |        306        1.09       78.76
Agricultural,other mobile plant operato |          7        0.02       78.78
Motorised farm, forestry plant operator |         23        0.08       78.86
Earth-moving  and related plant operato |         60        0.21       79.08
Crane, hoist and related plant operator |         29        0.10       79.18
                Lifting-truck operators |         71        0.25       79.43
  Ships' deck crews and related workers |         23        0.08       79.52
                 Elementary occupations |         21        0.07       79.59
Sales and services elementary occupatio |         38        0.14       79.73
                         Street vendors |         25        0.09       79.81
Door-to-door and telephone salespersons |         26        0.09       79.91
Domestic,related helpers,cleaner,launde |        174        0.62       80.53
          Domestic helpers and cleaners |        315        1.12       81.65
Helper,cleaner in office,hotel,other es |        749        2.67       84.32
           Hand-launderers and pressers |         40        0.14       84.46
                    Building caretakers |        153        0.55       85.01
   Vehicle, window and related cleaners |         13        0.05       85.06
Messengers,porters doorkeepers,rel work |          5        0.02       85.07
Messengers,package,luggage porter, deli |        134        0.48       85.55
Doorkeepers,watchpersons,related worker |         92        0.33       85.88
Vendingm,money collect, meter reader,re |          9        0.03       85.91
Garbage collectors and related labourer |          3        0.01       85.92
                     Garbage collectors |         21        0.07       86.00
         Sweepers and related labourers |         34        0.12       86.12
 Agricultural,fishery,related labourers |          5        0.02       86.14
 Agricultural,fishery,related labourers |          7        0.02       86.16
               Farm-hands and labourers |        213        0.76       86.92
                     Forestry labourers |         13        0.05       86.97
Fishery, hunting and trapping labourers |          3        0.01       86.98
Labourer mining,construction,manufact,t |         13        0.05       87.02
      Mining and construction labourers |          2        0.01       87.03
         Mining and quarrying labourers |          4        0.01       87.05
Constr,mainten labour: roads,dams,sim c |         80        0.29       87.33
        Building construction labourers |        127        0.45       87.78
                Manufacturing labourers |        320        1.14       88.92
Transport laborers and freight handlers |        150        0.53       89.46
                         Not applicable |      2,758        9.83       99.29
                                Refusal |         15        0.05       99.35
                             Don't know |         81        0.29       99.64
                              No answer |        102        0.36      100.00
----------------------------------------+-----------------------------------
                                  Total |     28,045      100.00

. 
. recode iscoco (missing=-9), copyrest gen(isco_mainjob)
(0 differences between iscoco and isco_mainjob)

. label variable isco_mainjob "Current occupation of respondent - isco88 4-digit"

. tab isco_mainjob

    Current |
 occupation |
         of |
 respondent |
   - isco88 |
    4-digit |      Freq.     Percent        Cum.
------------+-----------------------------------
        100 |         81        0.29        0.29
       1000 |         24        0.09        0.37
       1100 |          9        0.03        0.41
       1110 |         55        0.20        0.60
       1140 |          6        0.02        0.62
       1141 |          3        0.01        0.63
       1142 |          1        0.00        0.64
       1143 |          3        0.01        0.65
       1200 |         11        0.04        0.69
       1210 |        172        0.61        1.30
       1220 |         23        0.08        1.38
       1221 |          9        0.03        1.42
       1222 |         95        0.34        1.75
       1223 |         33        0.12        1.87
       1224 |         44        0.16        2.03
       1225 |         28        0.10        2.13
       1226 |         22        0.08        2.21
       1227 |         37        0.13        2.34
       1228 |         11        0.04        2.38
       1229 |        109        0.39        2.77
       1230 |         20        0.07        2.84
       1231 |        134        0.48        3.32
       1232 |         50        0.18        3.49
       1233 |        131        0.47        3.96
       1234 |         20        0.07        4.03
       1235 |         30        0.11        4.14
       1236 |         42        0.15        4.29
       1237 |         27        0.10        4.39
       1239 |         78        0.28        4.66
       1300 |         19        0.07        4.73
       1310 |          9        0.03        4.76
       1311 |         67        0.24        5.00
       1312 |         32        0.11        5.12
       1313 |         63        0.22        5.34
       1314 |        363        1.29        6.64
       1315 |        141        0.50        7.14
       1316 |         49        0.17        7.31
       1317 |         73        0.26        7.57
       1318 |         42        0.15        7.72
       1319 |        217        0.77        8.50
       2000 |         17        0.06        8.56
       2100 |         10        0.04        8.59
       2110 |          3        0.01        8.60
       2111 |          3        0.01        8.61
       2112 |          3        0.01        8.63
       2113 |         20        0.07        8.70
       2114 |          5        0.02        8.71
       2121 |          3        0.01        8.73
       2122 |         13        0.05        8.77
       2130 |         59        0.21        8.98
       2131 |        146        0.52        9.50
       2139 |         44        0.16        9.66
       2140 |         26        0.09        9.75
       2141 |         76        0.27       10.02
       2142 |         66        0.24       10.26
       2143 |         31        0.11       10.37
       2144 |         30        0.11       10.48
       2145 |         69        0.25       10.72
       2146 |          9        0.03       10.75
       2147 |          7        0.02       10.78
       2148 |         22        0.08       10.86
       2149 |         85        0.30       11.16
       2200 |          6        0.02       11.18
       2210 |          1        0.00       11.19
       2211 |         33        0.12       11.30
       2212 |          7        0.02       11.33
       2213 |         16        0.06       11.39
       2220 |          2        0.01       11.39
       2221 |        133        0.47       11.87
       2222 |         27        0.10       11.96
       2223 |          8        0.03       11.99
       2224 |         32        0.11       12.11
       2229 |         27        0.10       12.20
       2230 |        232        0.83       13.03
       2300 |        120        0.43       13.46
       2310 |        136        0.48       13.94
       2320 |        416        1.48       15.43
       2330 |         42        0.15       15.57
       2331 |        254        0.91       16.48
       2332 |         44        0.16       16.64
       2340 |         46        0.16       16.80
       2350 |          5        0.02       16.82
       2351 |         25        0.09       16.91
       2352 |         12        0.04       16.95
       2359 |        113        0.40       17.35
       2400 |          4        0.01       17.37
       2410 |         13        0.05       17.41
       2411 |        155        0.55       17.97
       2412 |         62        0.22       18.19
       2419 |        240        0.86       19.04
       2420 |          8        0.03       19.07
       2421 |         66        0.24       19.31
       2422 |         15        0.05       19.36
       2429 |         23        0.08       19.44
       2430 |          2        0.01       19.45
       2431 |         14        0.05       19.50
       2432 |         30        0.11       19.61
       2440 |          2        0.01       19.61
       2441 |         27        0.10       19.71
       2442 |         11        0.04       19.75
       2443 |          7        0.02       19.78
       2444 |         33        0.12       19.89
       2445 |         50        0.18       20.07
       2446 |        121        0.43       20.50
       2450 |          4        0.01       20.52
       2451 |         96        0.34       20.86
       2452 |         44        0.16       21.02
       2453 |         33        0.12       21.13
       2454 |          2        0.01       21.14
       2455 |         28        0.10       21.24
       2460 |         24        0.09       21.33
       2470 |        106        0.38       21.70
       3000 |          7        0.02       21.73
       3100 |         11        0.04       21.77
       3110 |         20        0.07       21.84
       3111 |         49        0.17       22.01
       3112 |         66        0.24       22.25
       3113 |         29        0.10       22.35
       3114 |         54        0.19       22.55
       3115 |         55        0.20       22.74
       3116 |         17        0.06       22.80
       3117 |          7        0.02       22.83
       3118 |         58        0.21       23.03
       3119 |         96        0.34       23.38
       3120 |         47        0.17       23.54
       3121 |         66        0.24       23.78
       3122 |         23        0.08       23.86
       3123 |          5        0.02       23.88
       3130 |          1        0.00       23.88
       3131 |         30        0.11       23.99
       3132 |         10        0.04       24.03
       3133 |          9        0.03       24.06
       3139 |          3        0.01       24.07
       3140 |          1        0.00       24.07
       3141 |         10        0.04       24.11
       3142 |         20        0.07       24.18
       3143 |          3        0.01       24.19
       3144 |         11        0.04       24.23
       3145 |          1        0.00       24.23
       3150 |          7        0.02       24.26
       3151 |         12        0.04       24.30
       3152 |         98        0.35       24.65
       3200 |         10        0.04       24.69
       3210 |          3        0.01       24.70
       3211 |         43        0.15       24.85
       3212 |         11        0.04       24.89
       3213 |          9        0.03       24.92
       3220 |          1        0.00       24.92
       3221 |         30        0.11       25.03
       3222 |         11        0.04       25.07
       3223 |         12        0.04       25.11
       3224 |         16        0.06       25.17
       3225 |         26        0.09       25.26
       3226 |         72        0.26       25.52
       3227 |         10        0.04       25.56
       3228 |         42        0.15       25.71
       3229 |         68        0.24       25.95
       3230 |          7        0.02       25.97
       3231 |        361        1.29       27.26
       3232 |         24        0.09       27.35
       3300 |         10        0.04       27.38
       3310 |         81        0.29       27.67
       3320 |        115        0.41       28.08
       3330 |         18        0.06       28.14
       3340 |         90        0.32       28.46
       3400 |         27        0.10       28.56
       3410 |         47        0.17       28.73
       3411 |         30        0.11       28.84
       3412 |         81        0.29       29.12
       3413 |         45        0.16       29.29
       3414 |         13        0.05       29.33
       3415 |        235        0.84       30.17
       3416 |         56        0.20       30.37
       3417 |          7        0.02       30.39
       3419 |        148        0.53       30.92
       3420 |         11        0.04       30.96
       3421 |          7        0.02       30.99
       3422 |          7        0.02       31.01
       3423 |         30        0.11       31.12
       3429 |         25        0.09       31.21
       3430 |        103        0.37       31.57
       3431 |        316        1.13       32.70
       3432 |         87        0.31       33.01
       3433 |        130        0.46       33.47
       3434 |         13        0.05       33.52
       3440 |          9        0.03       33.55
       3441 |         10        0.04       33.59
       3442 |         21        0.07       33.66
       3443 |         21        0.07       33.74
       3444 |          9        0.03       33.77
       3449 |         18        0.06       33.83
       3450 |         48        0.17       34.01
       3460 |        174        0.62       34.63
       3470 |          5        0.02       34.64
       3471 |         85        0.30       34.95
       3472 |          4        0.01       34.96
       3473 |         10        0.04       35.00
       3474 |          5        0.02       35.02
       3475 |         58        0.21       35.22
       3480 |         11        0.04       35.26
       4000 |         69        0.25       35.51
       4100 |         22        0.08       35.59
       4110 |         84        0.30       35.89
       4111 |         23        0.08       35.97
       4112 |          6        0.02       35.99
       4113 |         22        0.08       36.07
       4114 |          4        0.01       36.08
       4115 |        379        1.35       37.43
       4120 |         61        0.22       37.65
       4121 |        282        1.01       38.66
       4122 |        116        0.41       39.07
       4130 |         17        0.06       39.13
       4131 |        196        0.70       39.83
       4132 |         81        0.29       40.12
       4133 |         57        0.20       40.32
       4141 |         29        0.10       40.42
       4142 |        105        0.37       40.80
       4143 |          3        0.01       40.81
       4144 |          5        0.02       40.83
       4190 |        463        1.65       42.48
       4200 |         10        0.04       42.51
       4210 |         28        0.10       42.61
       4211 |        120        0.43       43.04
       4212 |         56        0.20       43.24
       4213 |          8        0.03       43.27
       4215 |         13        0.05       43.32
       4220 |         34        0.12       43.44
       4221 |         14        0.05       43.49
       4222 |        142        0.51       43.99
       4223 |         85        0.30       44.30
       5000 |         23        0.08       44.38
       5100 |         24        0.09       44.46
       5110 |          1        0.00       44.47
       5111 |         31        0.11       44.58
       5112 |         18        0.06       44.64
       5113 |         13        0.05       44.69
       5120 |         10        0.04       44.72
       5121 |         80        0.29       45.01
       5122 |        338        1.21       46.22
       5123 |        455        1.62       47.84
       5130 |         24        0.09       47.92
       5131 |        335        1.19       49.12
       5132 |        354        1.26       50.38
       5133 |        310        1.11       51.49
       5139 |         89        0.32       51.80
       5140 |          7        0.02       51.83
       5141 |        205        0.73       52.56
       5142 |         13        0.05       52.60
       5143 |          6        0.02       52.63
       5149 |         64        0.23       52.85
       5160 |          5        0.02       52.87
       5161 |         43        0.15       53.03
       5162 |         95        0.34       53.36
       5163 |         24        0.09       53.45
       5169 |         93        0.33       53.78
       5200 |         74        0.26       54.05
       5210 |          5        0.02       54.06
       5220 |      1,483        5.29       59.35
       6100 |         10        0.04       59.39
       6110 |          6        0.02       59.41
       6111 |        254        0.91       60.31
       6112 |        153        0.55       60.86
       6120 |          1        0.00       60.86
       6121 |         82        0.29       61.16
       6122 |          9        0.03       61.19
       6129 |         25        0.09       61.28
       6130 |        272        0.97       62.25
       6140 |         12        0.04       62.29
       6141 |         16        0.06       62.35
       6142 |          1        0.00       62.35
       6150 |          7        0.02       62.37
       6151 |          3        0.01       62.39
       6152 |          7        0.02       62.41
       6153 |          4        0.01       62.42
       7000 |         10        0.04       62.46
       7100 |          9        0.03       62.49
       7111 |          9        0.03       62.52
       7112 |          4        0.01       62.54
       7113 |         10        0.04       62.57
       7120 |         31        0.11       62.68
       7121 |         65        0.23       62.92
       7122 |        241        0.86       63.78
       7123 |         33        0.12       63.89
       7124 |        212        0.76       64.65
       7129 |         39        0.14       64.79
       7130 |          2        0.01       64.80
       7131 |         19        0.07       64.86
       7132 |         33        0.12       64.98
       7133 |         41        0.15       65.13
       7134 |         16        0.06       65.18
       7135 |         18        0.06       65.25
       7136 |        109        0.39       65.64
       7137 |        111        0.40       66.03
       7139 |         22        0.08       66.11
       7140 |          5        0.02       66.13
       7141 |        125        0.45       66.58
       7143 |         13        0.05       66.62
       7200 |          6        0.02       66.64
       7210 |          9        0.03       66.67
       7211 |          6        0.02       66.70
       7212 |         96        0.34       67.04
       7213 |         47        0.17       67.21
       7214 |         59        0.21       67.42
       7215 |          3        0.01       67.43
       7216 |          1        0.00       67.43
       7220 |          1        0.00       67.43
       7221 |         29        0.10       67.54
       7222 |         71        0.25       67.79
       7223 |         87        0.31       68.10
       7224 |         13        0.05       68.15
       7230 |         38        0.14       68.28
       7231 |        181        0.65       68.93
       7232 |         13        0.05       68.97
       7233 |         81        0.29       69.26
       7240 |         11        0.04       69.30
       7241 |        132        0.47       69.77
       7242 |         64        0.23       70.00
       7244 |         24        0.09       70.09
       7245 |         20        0.07       70.16
       7300 |          1        0.00       70.16
       7310 |          5        0.02       70.18
       7311 |         29        0.10       70.28
       7312 |          4        0.01       70.30
       7313 |         19        0.07       70.37
       7320 |          4        0.01       70.38
       7321 |         11        0.04       70.42
       7322 |         12        0.04       70.46
       7324 |          7        0.02       70.49
       7330 |          2        0.01       70.49
       7331 |         14        0.05       70.54
       7332 |         11        0.04       70.58
       7340 |          1        0.00       70.59
       7341 |         20        0.07       70.66
       7342 |          5        0.02       70.68
       7343 |         12        0.04       70.72
       7344 |         11        0.04       70.76
       7345 |         14        0.05       70.81
       7346 |          3        0.01       70.82
       7400 |         11        0.04       70.86
       7410 |          3        0.01       70.87
       7411 |         63        0.22       71.09
       7412 |         88        0.31       71.41
       7413 |          6        0.02       71.43
       7414 |          4        0.01       71.44
       7416 |          2        0.01       71.45
       7421 |         10        0.04       71.49
       7422 |         78        0.28       71.76
       7423 |          7        0.02       71.79
       7424 |          1        0.00       71.79
       7430 |          4        0.01       71.81
       7431 |          4        0.01       71.82
       7432 |         22        0.08       71.90
       7433 |        103        0.37       72.27
       7434 |          3        0.01       72.28
       7435 |         12        0.04       72.32
       7436 |        108        0.39       72.70
       7437 |         20        0.07       72.78
       7441 |          5        0.02       72.79
       7442 |         21        0.07       72.87
       8000 |         30        0.11       72.98
       8100 |          4        0.01       72.99
       8110 |          3        0.01       73.00
       8111 |          7        0.02       73.03
       8112 |          3        0.01       73.04
       8113 |          6        0.02       73.06
       8120 |          3        0.01       73.07
       8121 |          8        0.03       73.10
       8122 |          7        0.02       73.12
       8123 |          3        0.01       73.13
       8124 |          4        0.01       73.15
       8130 |          2        0.01       73.15
       8131 |          7        0.02       73.18
       8139 |          2        0.01       73.19
       8140 |         12        0.04       73.23
       8141 |         20        0.07       73.30
       8142 |          4        0.01       73.31
       8143 |         17        0.06       73.37
       8150 |          6        0.02       73.40
       8151 |          1        0.00       73.40
       8152 |          1        0.00       73.40
       8155 |          4        0.01       73.42
       8159 |          6        0.02       73.44
       8160 |          3        0.01       73.45
       8161 |         11        0.04       73.49
       8162 |         10        0.04       73.52
       8163 |          9        0.03       73.56
       8170 |         17        0.06       73.62
       8200 |         17        0.06       73.68
       8210 |          2        0.01       73.69
       8211 |         50        0.18       73.86
       8212 |         11        0.04       73.90
       8221 |         10        0.04       73.94
       8222 |          3        0.01       73.95
       8223 |          7        0.02       73.97
       8224 |          4        0.01       73.99
       8229 |          4        0.01       74.00
       8230 |          3        0.01       74.01
       8231 |          9        0.03       74.05
       8232 |         23        0.08       74.13
       8240 |         11        0.04       74.17
       8250 |          1        0.00       74.17
       8251 |         29        0.10       74.27
       8252 |          9        0.03       74.31
       8253 |         12        0.04       74.35
       8260 |          6        0.02       74.37
       8261 |         27        0.10       74.47
       8262 |         27        0.10       74.56
       8263 |         52        0.19       74.75
       8264 |         27        0.10       74.84
       8265 |          1        0.00       74.85
       8266 |          5        0.02       74.87
       8269 |         28        0.10       74.97
       8270 |         24        0.09       75.05
       8271 |         30        0.11       75.16
       8272 |         10        0.04       75.19
       8273 |          3        0.01       75.20
       8274 |         26        0.09       75.30
       8275 |         10        0.04       75.33
       8276 |          1        0.00       75.34
       8278 |          9        0.03       75.37
       8279 |          8        0.03       75.40
       8280 |         11        0.04       75.44
       8281 |         26        0.09       75.53
       8282 |         22        0.08       75.61
       8283 |         23        0.08       75.69
       8284 |         12        0.04       75.73
       8285 |         11        0.04       75.77
       8286 |          3        0.01       75.78
       8287 |          3        0.01       75.79
       8290 |        186        0.66       76.46
       8311 |         26        0.09       76.55
       8312 |          8        0.03       76.58
       8320 |         28        0.10       76.68
       8321 |          4        0.01       76.69
       8322 |        186        0.66       77.35
       8323 |         87        0.31       77.66
       8324 |        306        1.09       78.76
       8330 |          7        0.02       78.78
       8331 |         23        0.08       78.86
       8332 |         60        0.21       79.08
       8333 |         29        0.10       79.18
       8334 |         71        0.25       79.43
       8340 |         23        0.08       79.52
       9000 |         21        0.07       79.59
       9100 |         38        0.14       79.73
       9111 |         25        0.09       79.81
       9113 |         26        0.09       79.91
       9130 |        174        0.62       80.53
       9131 |        315        1.12       81.65
       9132 |        749        2.67       84.32
       9133 |         40        0.14       84.46
       9141 |        153        0.55       85.01
       9142 |         13        0.05       85.06
       9150 |          5        0.02       85.07
       9151 |        134        0.48       85.55
       9152 |         92        0.33       85.88
       9153 |          9        0.03       85.91
       9160 |          3        0.01       85.92
       9161 |         21        0.07       86.00
       9162 |         34        0.12       86.12
       9200 |          5        0.02       86.14
       9210 |          7        0.02       86.16
       9211 |        213        0.76       86.92
       9212 |         13        0.05       86.97
       9213 |          3        0.01       86.98
       9300 |         13        0.05       87.02
       9310 |          2        0.01       87.03
       9311 |          4        0.01       87.05
       9312 |         80        0.29       87.33
       9313 |        127        0.45       87.78
       9320 |        320        1.14       88.92
       9330 |        150        0.53       89.46
      66666 |      2,758        9.83       99.29
      77777 |         15        0.05       99.35
      88888 |         81        0.29       99.64
      99999 |        102        0.36      100.00
------------+-----------------------------------
      Total |     28,045      100.00

. 
. **** Recode employment status for respondents
. 
. tab emplrel

            Employment relation |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     21,459       76.52       76.52
                  Self-employed |      3,386       12.07       88.59
Working for own family business |        354        1.26       89.85
                 Not applicable |      2,758        9.83       99.69
                        Refusal |         18        0.06       99.75
                     Don't know |         61        0.22       99.97
                      No answer |          9        0.03      100.00
--------------------------------+-----------------------------------
                          Total |     28,045      100.00

. 
. recode emplrel (missing=9), copyrest gen(emplrel_r)
(0 differences between emplrel and emplrel_r)

. replace emplrel_r=-9 if cntry=="FR" & (essround==1 | essround==2) // Replace this command line with [SYNTAX G and SYNTA
> X I]
(0 real changes made)

. replace emplrel_r=-9 if cntry=="HU" & essround==2 // Replace this command line with [SYNTAX E]
(0 real changes made)

. label define emplrel_r ///
> 1 "Employee" ///
> 2 "Self-employed" ///
> 3 "Working for own family business" ///
> 9 "Missing"

. label value emplrel_r emplrel_r

. tab emplrel_r

  RECODE of emplrel (Employment |
                      relation) |      Freq.     Percent        Cum.
--------------------------------+-----------------------------------
                       Employee |     21,459       76.52       76.52
                  Self-employed |      3,386       12.07       88.59
Working for own family business |        354        1.26       89.85
                              6 |      2,758        9.83       99.69
                              7 |         18        0.06       99.75
                              8 |         61        0.22       99.97
                        Missing |          9        0.03      100.00
--------------------------------+-----------------------------------
                          Total |     28,045      100.00

. 
. tab emplno

     Number of |
     employees |
    respondent |
       has/had |      Freq.     Percent        Cum.
---------------+-----------------------------------
             0 |      2,168        7.73        7.73
             1 |        395        1.41        9.14
             2 |        226        0.81        9.94
             3 |        130        0.46       10.41
             4 |         80        0.29       10.69
             5 |         74        0.26       10.96
             6 |         41        0.15       11.10
             7 |         30        0.11       11.21
             8 |         23        0.08       11.29
             9 |         13        0.05       11.34
            10 |         33        0.12       11.46
            11 |          6        0.02       11.48
            12 |         16        0.06       11.54
            13 |          6        0.02       11.56
            14 |          7        0.02       11.58
            15 |         14        0.05       11.63
            16 |          5        0.02       11.65
            17 |          1        0.00       11.65
            18 |          7        0.02       11.68
            19 |          1        0.00       11.68
            20 |          9        0.03       11.71
            21 |          2        0.01       11.72
            22 |          2        0.01       11.73
            23 |          3        0.01       11.74
            24 |          1        0.00       11.74
            25 |         13        0.05       11.79
            26 |          2        0.01       11.80
            27 |          1        0.00       11.80
            29 |          1        0.00       11.80
            30 |          8        0.03       11.83
            32 |          1        0.00       11.83
            35 |          5        0.02       11.85
            36 |          1        0.00       11.86
            37 |          2        0.01       11.86
            40 |          3        0.01       11.87
            45 |          2        0.01       11.88
            47 |          1        0.00       11.88
            49 |          1        0.00       11.89
            50 |          4        0.01       11.90
            52 |          1        0.00       11.91
            60 |          6        0.02       11.93
            70 |          2        0.01       11.93
            75 |          1        0.00       11.94
            80 |          3        0.01       11.95
            90 |          1        0.00       11.95
           100 |          2        0.01       11.96
           120 |          1        0.00       11.96
           140 |          2        0.01       11.97
           150 |          1        0.00       11.97
           200 |          1        0.00       11.98
           250 |          1        0.00       11.98
           290 |          1        0.00       11.98
           350 |          1        0.00       11.99
           500 |          1        0.00       11.99
Not applicable |     24,649       87.89       99.88
       Refusal |          5        0.02       99.90
    Don't know |         21        0.07       99.98
     No answer |          7        0.02      100.00
---------------+-----------------------------------
         Total |     28,045      100.00

. 
. recode emplno (0=0)(1/9=1)(10/10000=2)(missing=0), gen(emplno_r)
(800 differences between emplno and emplno_r)

. label define emplno_r ///
> 0 "0 employees" ///
> 1 "1-9 employees" ///
> 2 "10+ employees"

. label value emplno_r emplno_r

. tab emplno_r

    RECODE of |
       emplno |
   (Number of |
    employees |
   respondent |
     has/had) |      Freq.     Percent        Cum.
--------------+-----------------------------------
  0 employees |      2,168        7.73        7.73
1-9 employees |      1,012        3.61       11.34
10+ employees |        183        0.65       11.99
        66666 |     24,649       87.89       99.88
        77777 |          5        0.02       99.90
        88888 |         21        0.07       99.98
        99999 |          7        0.02      100.00
--------------+-----------------------------------
        Total |     28,045      100.00

. 
. 
. gen selfem_mainjob=.
(28045 missing values generated)

. replace selfem_mainjob=1 if emplrel_r==1 | emplrel_r==9
(21468 real changes made)

. replace selfem_mainjob=2 if emplrel_r==2 & emplno_r==0
(2165 real changes made)

. replace selfem_mainjob=2 if emplrel_r==3
(354 real changes made)

. replace selfem_mainjob=3 if emplrel_r==2 & emplno_r==1
(1012 real changes made)

. replace selfem_mainjob=4 if emplrel_r==2 & emplno_r==2
(183 real changes made)

. label variable selfem_mainjob "Employment status for respondants"

. label define selfem_mainjob ///
> 1 "Not self-employed" ///
> 2 "Self-empl without employees" ///
> 3 "Self-empl with 1-9 employees" ///
> 4 "Self-empl with 10 or more"

. label value selfem_mainjob selfem_mainjob

. tab selfem_mainjob

       Employment status for |
                 respondants |      Freq.     Percent        Cum.
-----------------------------+-----------------------------------
           Not self-employed |     21,468       85.25       85.25
 Self-empl without employees |      2,519       10.00       95.25
Self-empl with 1-9 employees |      1,012        4.02       99.27
   Self-empl with 10 or more |        183        0.73      100.00
-----------------------------+-----------------------------------
                       Total |     25,182      100.00

. 
. 
. *************************************************
. * Create Oesch class schema for respondents
. *************************************************
. 
. gen class16_r = -9

. 
. * Large employers (1)
. 
. replace class16_r=1 if selfem_mainjob==4
(183 real changes made)

. 
. 
. * Self-employed professionals (2)
. 
. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2000 & isco_mainjob <= 2229) 
(171 real changes made)

. replace class16_r=2 if (selfem_mainjob==2 | selfem_mainjob==3) & (isco_mainjob >= 2300 & isco_mainjob <= 2470)
(253 real changes made)

. 
. * Small business owners with employees (3)
. 
. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(346 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(547 real changes made)

. replace class16_r=3 if (selfem_mainjob==3) & (isco_mainjob == 2230)
(2 real changes made)

. 
. * Small business owners without employees (4)
. 
. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 1000 & isco_mainjob <= 1999)
(438 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob >= 3000 & isco_mainjob <= 9333)
(1745 real changes made)

. replace class16_r=4 if (selfem_mainjob==2) & (isco_mainjob == 2230)
(5 real changes made)

. 
. * Technical experts (5)
. 
. replace class16_r=5 if (selfem_mainjob==1) & (isco_mainjob >= 2100 & isco_mainjob <= 2213)
(682 real changes made)

. 
. * Technicians (6)
. 
. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3100 & isco_mainjob <= 3152)
(762 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob >= 3210 & isco_mainjob <= 3213)
(64 real changes made)

. replace class16_r=6 if (selfem_mainjob==1) & (isco_mainjob == 3434)
(12 real changes made)

. 
. * Skilled manual (7)
. 
. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 6000 & isco_mainjob <= 7442)
(2677 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8310 & isco_mainjob <= 8312)
(34 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8324 & isco_mainjob <= 8330)
(276 real changes made)

. replace class16_r=7 if (selfem_mainjob==1) & (isco_mainjob >= 8332 & isco_mainjob <= 8340)
(168 real changes made)

. 
. * Low-skilled manual (8)
. 
. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8000 & isco_mainjob <= 8300)
(971 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 8320 & isco_mainjob <= 8321)
(32 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob == 8331)
(18 real changes made)

. replace class16_r=8 if (selfem_mainjob==1) & (isco_mainjob >= 9153 & isco_mainjob <= 9333)
(877 real changes made)

. 
. * Higher-grade managers and administrators (9)
. 
. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 1000 & isco_mainjob <= 1239)
(1051 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob >= 2400 & isco_mainjob <= 2429)
(479 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2441)
(22 real changes made)

. replace class16_r=9 if (selfem_mainjob==1) & (isco_mainjob == 2470)
(105 real changes made)

. 
. * Lower-grade managers and administrators (10)
. 
. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 1300 & isco_mainjob <= 1319)
(339 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3400 & isco_mainjob <= 3433)
(1244 real changes made)

. replace class16_r=10 if (selfem_mainjob==1) & (isco_mainjob >= 3440 & isco_mainjob <= 3450)
(130 real changes made)

. 
. * Skilled clerks (11)
. 
. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4000 & isco_mainjob <= 4112)
(198 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4114 & isco_mainjob <= 4210)
(1757 real changes made)

. replace class16_r=11 if (selfem_mainjob==1) & (isco_mainjob >= 4212 & isco_mainjob <= 4222)
(255 real changes made)

. 
. * Unskilled clerks (12)
. 
. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4113)
(22 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4211)
(115 real changes made)

. replace class16_r=12 if (selfem_mainjob==1) & (isco_mainjob == 4223)
(80 real changes made)

. 
. * Socio-cultural professionals (13)
. 
. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2220 &  isco_mainjob <= 2229)
(157 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2300 &  isco_mainjob <= 2320)
(658 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2340 &  isco_mainjob <= 2359)
(174 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2430 &  isco_mainjob <= 2440)
(47 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob >= 2442 &  isco_mainjob <= 2443)
(15 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2445)
(34 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2451)
(68 real changes made)

. replace class16_r=13 if (selfem_mainjob==1) & (isco_mainjob == 2460)
(24 real changes made)

. 
. * Socio-cultural semi-professionals (14)
. 
. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2230)
(224 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2330 & isco_mainjob <= 2332)
(335 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 2444)
(22 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2446 & isco_mainjob <= 2450)
(118 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 2452 & isco_mainjob <= 2455)
(66 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3200)
(10 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3220 & isco_mainjob <= 3224)
(66 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3226)
(52 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3229 & isco_mainjob <= 3340)
(738 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob >= 3460 & isco_mainjob <= 3472)
(231 real changes made)

. replace class16_r=14 if (selfem_mainjob==1) & (isco_mainjob == 3480)
(10 real changes made)

. 
. * Skilled service (15)
. 
. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 3225)
(25 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3227 & isco_mainjob <= 3228)
(51 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 3473 & isco_mainjob <= 3475)
(56 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5000 & isco_mainjob <= 5113)
(97 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5122)
(322 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5131 & isco_mainjob <= 5132)
(649 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5140 & isco_mainjob <= 5141)
(115 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 5143)
(6 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob >= 5160 & isco_mainjob <= 5220)
(1626 real changes made)

. replace class16_r=15 if (selfem_mainjob==1) & (isco_mainjob == 8323)
(85 real changes made)

. 
. * Low-skilled service (16)
. 
. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5120 & isco_mainjob <= 5121)
(86 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5123 & isco_mainjob <= 5130)
(435 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 5133 & isco_mainjob <= 5139)
(377 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5142)
(12 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5149)
(61 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 5230)
(0 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob == 8322)
(132 real changes made)

. replace class16_r=16 if (selfem_mainjob==1) & (isco_mainjob >= 9100 &  isco_mainjob <= 9152)
(1635 real changes made)

. 
. mvdecode class16_r, mv(-9)
   class16_r: 3166 missing values generated

. label variable class16_r "Respondent's Oesch class position - 16 classes"

. label define class16_r ///
> 1 "Large employers" ///
> 2 "Self-employed professionals" ///
> 3 "Small business owners with employees" ///
> 4 "Small business owners without employees" ///
> 5 "Technical experts" ///
> 6 "Technicians" ///
> 7 "Skilled manual" ///
> 8 "Low-skilled manual" ///
> 9 "Higher-grade managers and administrators" ///
> 10 "Lower-grade managers and administrators" ///
> 11 "Skilled clerks" ///
> 12 "Unskilled clerks" ///
> 13 "Socio-cultural professionals" ///
> 14 "Socio-cultural semi-professionals" ///
> 15 "Skilled service" ///
> 16 "Low-skilled service"

. label value class16_r class16_r

. tab class16_r

 Respondent's Oesch class position - 16 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                        Large employers |        183        0.74        0.74
            Self-employed professionals |        424        1.70        2.44
   Small business owners with employees |        895        3.60        6.04
Small business owners without employees |      2,188        8.79       14.83
                      Technical experts |        682        2.74       17.57
                            Technicians |        838        3.37       20.94
                         Skilled manual |      3,155       12.68       33.62
                     Low-skilled manual |      1,898        7.63       41.25
Higher-grade managers and administrator |      1,657        6.66       47.91
Lower-grade managers and administrators |      1,713        6.89       54.80
                         Skilled clerks |      2,210        8.88       63.68
                       Unskilled clerks |        217        0.87       64.55
           Socio-cultural professionals |      1,177        4.73       69.28
      Socio-cultural semi-professionals |      1,872        7.52       76.81
                        Skilled service |      3,032       12.19       88.99
                    Low-skilled service |      2,738       11.01      100.00
----------------------------------------+-----------------------------------
                                  Total |     24,879      100.00

. 
. recode class16_r (1 2=1)(3 4=2)(5 6=3)(7 8=4)(9 10=5)(11 12=6)(13 14=7)(15 16=8), gen(class8_r)
(24696 differences between class16_r and class8_r)

. label variable class8_r "Respondent's Oesch class position - 8 classes"

. label define class8_r ///
> 1 "Self-employed professionals and large employers" ///
> 2 "Small business owners" ///
> 3 "Technical (semi-)professionals" ///
> 4 "Production workers" ///
> 5 "(Associate) managers" ///
> 6 "Clerks" ///
> 7 "Socio-cultural (semi-)professionals" ///
> 8 "Service workers"

. label value class8_r class8_r

. tab class8_r

  Respondent's Oesch class position - 8 |
                                classes |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Self-employed professionals and large e |        607        2.44        2.44
                  Small business owners |      3,083       12.39       14.83
         Technical (semi-)professionals |      1,520        6.11       20.94
                     Production workers |      5,053       20.31       41.25
                   (Associate) managers |      3,370       13.55       54.80
                                 Clerks |      2,427        9.76       64.55
    Socio-cultural (semi-)professionals |      3,049       12.26       76.81
                        Service workers |      5,770       23.19      100.00
----------------------------------------+-----------------------------------
                                  Total |     24,879      100.00

. 
. 
. *** Aggregated sector variable
. * Creation of variable
. gen sector=.
(28045 missing values generated)

. replace sector=1 if nace==1 | nace==2 | nace==5
(1197 real changes made)

. replace sector=2 if nace==10 | nace==11 | nace==12 | nace==13 | nace==14
(976 real changes made)

. replace sector=3 if nace==15 | nace==16 | nace==17 | nace==18 | nace==19 | nace==20 ///
>          | nace==21 | nace==22 | nace==23 | nace==24 | nace==25 | nace==26 | nace==27 ///
>          | nace==28 | nace==29 | nace==30 | nace==31 | nace==32 | nace==33 | nace==34 ///
>          | nace==35 | nace==36 | nace==37
(3091 real changes made)

. replace sector=4 if nace==40 | nace==41
(650 real changes made)

. replace sector=5 if nace==45
(452 real changes made)

. replace sector=6 if nace==50 | nace==51 | nace==52 | nace==55
(1127 real changes made)

. replace sector=7 if nace==60 | nace==61 | nace==62 | nace==63 | nace==64
(1052 real changes made)

. replace sector=8 if nace==65 | nace==66 | nace==67 | nace==70 | nace==71 | nace==72 ///
>          | nace==73 | nace==74
(1177 real changes made)

. replace sector=9 if nace==75 | nace==80 | nace==85 | nace==90 | nace==91 | nace==92 ///
>          | nace==93 | nace==95 | nace==99
(2986 real changes made)

. lab var sector "Aggregated sector variable"

. * Definition of value label
. lab define sector 1 "Agriculture, hunting, forestry and fishing" ///
>         2 "Mining and quarrying" ///
>         3 "Manufacturing" ///
>         4 "Electricity, gas and water" ///
>         5 "Construction" ///
>         6 "Wholesale and retail trade and restaurants and hotels" ///
>         7 "Transport, storage and communications" ///
>         8 "Financing, insurance, real estate and busines services" ///
>         9 "Community, social and personal services"

. lab values sector sector

. 
. 
. *** Gender
. *** Gender
. * Creation of variable
. gen gender=gndr

. lab var gender "Gender"

. * Recoding of variable and definition of value label
. recode gender (1=0) (2=1)
(gender: 28045 changes made)

. lab define gender 0 "male" 1 "female"

. lab values gender gender

. 
. 
. *** Creation of modernization loser variable 1 : routine service (class 16)
. * Creation of variable
. gen mod_losers1=.
(28045 missing values generated)

. replace mod_losers1 =1 if class16_r==16
(2738 real changes made)

. replace mod_losers1 =0 if class16_r!=16
(25307 real changes made)

. replace mod_losers1=. if class16_r==.
(3166 real changes made, 3166 to missing)

. 
. lab var mod_losers1 "Modernization losers 1; routine service oesch "

. * Definition of value label
. lab define mod_losers1 1 "mod loser (routine service)" 0 "not loser"

. lab values mod_losers1 mod_losers1

. 
. 
. 
. *** Creation of modernization loser variable 4 : routine and skilled manual (classes 7,8)
. * Creation of variable
. gen mod_losers4=0

. replace mod_losers4 =1 if class16_r==7
(3155 real changes made)

. replace mod_losers4 =1 if class16_r==8
(1898 real changes made)

. replace mod_losers4 =. if class16_r==.
(3166 real changes made, 3166 to missing)

. 
. lab var mod_losers4 "Modernization losers 4; routine and skilled manual oesch "

. * Definition of value label
. lab define mod_losers4 1 "mod loser (routine and skilled manual)" 0 "not loser"

. lab values mod_losers4 mod_losers4

. 
. 
. *** Creation of modernization winner variable 1 : socio-cult prof
. * Creation of variable
. gen mod_winners1=0

. replace mod_winners1 =1 if class16_r==13
(1177 real changes made)

. replace mod_winners1 =1 if class16_r==14
(1872 real changes made)

. replace mod_winners1 =. if class16_r==.
(3166 real changes made, 3166 to missing)

. 
. lab var mod_winners1 "Modernization winners 1; SCP oesch "

. * Definition of value label
. lab define mod_winners1 1 "mod winners (SCP oesch)" 0 "not winner"

. lab values mod_winners1 mod_winners1

. 
. 
. ************************************
. ************************************
. *       1.3 lm status: unempl, temp, involunt parttime
. 
. 
. *** unemployed in last 5 years
. * Creation of variable
. gen unemployed5y=uemp5yr==1

. lab var unemployed5y "Unemployed in last 5 years"

. * Definition of value label
. lab define unemployed5y 1 "unemployed in last 5 years" 0 "other"

. lab values unemployed5y unemployed5y

. 
. 
. *** temporary employed
. * Creation of variable
. gen temp=wrkctr==2

. lab var temp "temporary employed (limited contract)"

. * Definition of value label
. lab define temp 1 "limited contract" 0 "other"

. lab values temp temp

. 
. 
. *** part-time
. * Creation of variable
. gen parttime=wkhct<30

. lab var parttime "parttime employed (<30h)"

. * Definition of value label
. lab define parttime 1 "parttime" 0 "other"

. lab values parttime parttime

. 
. 
. ************************************
. ************************************
. *       1.4 other variables : country dummies, polint, age, age2, income?, gender, sector?
. 
. 
. 
. *** Age
. * Creation of variable
. gen age=2010-yrbrn

. lab var age "Age in years"

. gen age2=age^2

. lab var age2 "Age in years (squared)"

. 
. 
. *** Political interest
. * Creation of variable
. gen polint=polintr

. recode polint (1=4) (2=3) (3=2) (4=1)
(polint: 28021 changes made)

. lab var polint "Interest in politics"

. * Definition of value label
. lab define polint 4 "Very interested" 3 "Quite interested" 2 "Hardly interested" ///
>         1 "Not at all interested"

. lab values polint polint

. 
. 
. *** Income
. * Creation of variable
. gen inc=hinctnt
(2150 missing values generated)

. sum hinctnt if cntry=="AT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="AT"
(0 real changes made)

. sum hinctnt if cntry=="BE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            3              1       Obs                1704
25%            4              1       Sum of Wgt.        1704

50%            7                      Mean           17.10563
                        Largest       Std. Dev.      27.42468
75%            9             88
90%           77             88       Variance       752.1133
95%           88             88       Skewness       2.025099
99%           88             88       Kurtosis       5.197239

. replace inc=hinctnt-r(p50) if cntry=="BE"
(1704 real changes made)

. sum hinctnt if cntry=="CH", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            2              1
10%            2              1       Obs                1506
25%            4              1       Sum of Wgt.        1506

50%            7                      Mean            19.7656
                        Largest       Std. Dev.      29.98813
75%           10             88
90%           88             88       Variance       899.2879
95%           88             88       Skewness       1.653642
99%           88             88       Kurtosis        3.81495

. replace inc=hinctnt-r(p50) if cntry=="CH"
(1506 real changes made)

. sum hinctnt if cntry=="CZ", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="CZ"
(0 real changes made)

. sum hinctnt if cntry=="DE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                3031
25%            4              1       Sum of Wgt.        3031

50%            7                      Mean           21.19433
                        Largest       Std. Dev.      30.76759
75%           10             88
90%           77             88       Variance       946.6444
95%           88             88       Skewness       1.429506
99%           88             88       Kurtosis       3.119822

. replace inc=hinctnt-r(p50) if cntry=="DE"
(3031 real changes made)

. sum hinctnt if cntry=="DK", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1576
25%            4              1       Sum of Wgt.        1576

50%            7                      Mean           17.29949
                        Largest       Std. Dev.      28.12036
75%           10             99
90%           88             99       Variance       790.7547
95%           88             99       Skewness       2.065782
99%           99             99       Kurtosis       5.395142

. replace inc=hinctnt-r(p50) if cntry=="DK"
(1576 real changes made)

. sum hinctnt if cntry=="EE", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="EE"
(0 real changes made)

. sum hinctnt if cntry=="ES", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1885
25%            4              1       Sum of Wgt.        1885

50%            6                      Mean           22.36021
                        Largest       Std. Dev.      32.09676
75%           10             88
90%           77             88       Variance       1030.202
95%           88             88       Skewness       1.335255
99%           88             88       Kurtosis       2.852957

. replace inc=hinctnt-r(p50) if cntry=="ES"
(1885 real changes made)

. sum hinctnt if cntry=="FI", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1878
25%            3              1       Sum of Wgt.        1878

50%            6                      Mean           12.29446
                        Largest       Std. Dev.      22.46631
75%            8             88
90%           10             88       Variance       504.7353
95%           88             88       Skewness       2.949816
99%           88             88       Kurtosis       9.908605

. replace inc=hinctnt-r(p50) if cntry=="FI"
(1878 real changes made)

. sum hinctnt if cntry=="FR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            1              1       Obs                1728
25%            2              1       Sum of Wgt.        1728

50%            5                      Mean           10.81771
                        Largest       Std. Dev.      21.06657
75%            8             88
90%           10             88       Variance       443.8006
95%           77             88       Skewness       3.000779
99%           88             88       Kurtosis       10.27391

. replace inc=hinctnt-r(p50) if cntry=="FR"
(1728 real changes made)

. sum hinctnt if cntry=="GB", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            1              1       Obs                2422
25%            3              1       Sum of Wgt.        2422

50%            6                      Mean           22.06317
                        Largest       Std. Dev.      33.08338
75%           10             88
90%           88             88       Variance        1094.51
95%           88             88       Skewness       1.393774
99%           88             88       Kurtosis       3.001855

. replace inc=hinctnt-r(p50) if cntry=="GB"
(2422 real changes made)

. sum hinctnt if cntry=="GR", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                2715
25%            3              1       Sum of Wgt.        2715

50%            6                      Mean           28.15396
                        Largest       Std. Dev.      35.33319
75%           77             88
90%           77             88       Variance       1248.435
95%           88             88       Skewness       .8154713
99%           88             88       Kurtosis       1.711023

. replace inc=hinctnt-r(p50) if cntry=="GR"
(2715 real changes made)

. sum hinctnt if cntry=="HU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="HU"
(0 real changes made)

. sum hinctnt if cntry=="IE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            1              1       Obs                2576
25%            2              1       Sum of Wgt.        2576

50%            4                      Mean           28.30474
                        Largest       Std. Dev.      36.54633
75%           77             88
90%           88             88       Variance       1335.634
95%           88             88       Skewness       .7668132
99%           88             88       Kurtosis       1.632057

. replace inc=hinctnt-r(p50) if cntry=="IE"
(2576 real changes made)

. sum hinctnt if cntry=="IL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IL"
(0 real changes made)

. sum hinctnt if cntry=="IS", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IS"
(0 real changes made)

. sum hinctnt if cntry=="IT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="IT"
(0 real changes made)

. sum hinctnt if cntry=="LU", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="LU"
(0 real changes made)

. sum hinctnt if cntry=="NL", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1829
25%            4              1       Sum of Wgt.        1829

50%            7                      Mean           20.17277
                        Largest       Std. Dev.       30.2603
75%           10             88
90%           77             88       Variance       915.6857
95%           88             88       Skewness       1.582048
99%           88             88       Kurtosis       3.585026

. replace inc=hinctnt-r(p50) if cntry=="NL"
(1829 real changes made)

. sum hinctnt if cntry=="NO", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1548
25%            3              1       Sum of Wgt.        1548

50%            5                      Mean           8.850129
                        Largest       Std. Dev.      17.31213
75%            8             88
90%           10             88       Variance       299.7099
95%           10             99       Skewness       4.143805
99%           88             99       Kurtosis        18.7344

. replace inc=hinctnt-r(p50) if cntry=="NO"
(1548 real changes made)

. sum hinctnt if cntry=="PL", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PL"
(0 real changes made)

. sum hinctnt if cntry=="PT", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="PT"
(0 real changes made)

. sum hinctnt if cntry=="SE", detail

          Household's total net income, all sources
-------------------------------------------------------------
      Percentiles      Smallest
 1%            1              1
 5%            1              1
10%            2              1       Obs                1497
25%            4              1       Sum of Wgt.        1497

50%            7                      Mean           11.37007
                        Largest       Std. Dev.      20.17154
75%            9             88
90%           10             88       Variance        406.891
95%           88             99       Skewness       3.422516
99%           88             99       Kurtosis       13.08222

. replace inc=hinctnt-r(p50) if cntry=="SE"
(1497 real changes made)

. sum hinctnt if cntry=="SI", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SI"
(0 real changes made)

. sum hinctnt if cntry=="SK", detail

          Household's total net income, all sources
-------------------------------------------------------------
no observations

. replace inc=hinctnt-r(p50) if cntry=="SK"
(0 real changes made)

. lab var inc "Income, difference between respondet class and median class per country"

. 
. 
. ************************************
. ************************************
. *       1.5 Party choice and participation (adapted from Rommel&Walter)
. 
. *** Partisan preference, last election (not classified parties are missings)
. * Creation of variable
. gen party_vote=.
(28045 missing values generated)

. label var party_vote "Partisan preference, last election"

. * Austria: no observations
. * Belgium
. replace   party_vote=1         if        prtvtcbe==1
(63 real changes made)

. replace   party_vote=5         if        prtvtcbe==2
(150 real changes made)

. replace   party_vote=5         if        prtvtcbe==3
(279 real changes made)

. replace   party_vote=5         if        prtvtcbe==4
(5 real changes made)

. replace   party_vote=3         if        prtvtcbe==5
(128 real changes made)

. replace   party_vote=.         if        prtvtcbe==6
(0 real changes made)

. replace   party_vote=7         if        prtvtcbe==7
(61 real changes made)

. replace   party_vote=4         if        prtvtcbe==8
(96 real changes made)

. replace   party_vote=5         if        prtvtcbe==9
(61 real changes made)

. replace   party_vote=1         if        prtvtcbe==10
(70 real changes made)

. replace   party_vote=7         if        prtvtcbe==11
(1 real change made)

. replace   party_vote=4         if        prtvtcbe==12
(108 real changes made)

. replace   party_vote=3         if        prtvtcbe==13
(157 real changes made)

. replace   party_vote=.         if        prtvtcbe==14
(0 real changes made)

. replace   party_vote=.         if        prtvtcbe==15
(0 real changes made)

. replace   party_vote=0         if        prtvtcbe==16
(10 real changes made)

. replace   party_vote=.         if        prtvtcbe==17
(0 real changes made)

. replace   party_vote=.         if        prtvtcbe==18
(0 real changes made)

. * Switzerland
. replace   party_vote=4         if        prtvtcch==1
(98 real changes made)

. replace   party_vote=5         if        prtvtcch==2
(96 real changes made)

. replace   party_vote=3         if        prtvtcch==3
(137 real changes made)

. replace   party_vote=7         if        prtvtcch==4
(152 real changes made)

. replace   party_vote=4         if        prtvtcch==5
(15 real changes made)

. replace   party_vote=.         if        prtvtcch==6
(0 real changes made)

. replace   party_vote=2         if        prtvtcch==7
(1 real change made)

. replace   party_vote=1         if        prtvtcch==8
(48 real changes made)

. replace   party_vote=.         if        prtvtcch==9
(0 real changes made)

. replace   party_vote=7         if        prtvtcch==10
(3 real changes made)

. replace   party_vote=7         if        prtvtcch==11
(4 real changes made)

. replace   party_vote=5         if        prtvtcch==12
(12 real changes made)

. replace   party_vote=7         if        prtvtcch==13
(3 real changes made)

. replace   party_vote=.         if        prtvtcch==18
(0 real changes made)

. replace   party_vote=.         if        prtvtcch==19
(0 real changes made)

. replace   party_vote=0         if        prtvtcch==20
(5 real changes made)

. 
. * Germany
. replace   party_vote=3         if        prtvcde1==1
(543 real changes made)

. replace   party_vote=5         if        prtvcde1==2
(736 real changes made)

. replace   party_vote=1         if        prtvcde1==3
(201 real changes made)

. replace   party_vote=4         if        prtvcde1==4
(144 real changes made)

. replace   party_vote=2         if        prtvcde1==5
(189 real changes made)

. replace   party_vote=7         if        prtvcde1==6
(4 real changes made)

. replace   party_vote=7         if        prtvcde1==7
(15 real changes made)

. replace   party_vote=0         if        prtvcde1==8
(32 real changes made)

. * Denmark
. replace   party_vote=3         if        prtvtbdk==1
(303 real changes made)

. replace   party_vote=1         if        prtvtbdk==2
(70 real changes made)

. replace   party_vote=6         if        prtvtbdk==3
(99 real changes made)

. replace   party_vote=1         if        prtvtbdk==4
(189 real changes made)

. replace   party_vote=7         if        prtvtbdk==5
(134 real changes made)

. replace   party_vote=5         if        prtvtbdk==6
(7 real changes made)

. replace   party_vote=4         if        prtvtbdk==7
(363 real changes made)

. replace   party_vote=0         if        prtvtbdk==8
(19 real changes made)

. replace   party_vote=2         if        prtvtbdk==9
(25 real changes made)

. replace   party_vote=0         if        prtvtbdk==10
(10 real changes made)

. 
. * Spain
. replace   party_vote=6         if        prtvtbes==1
(360 real changes made)

. replace   party_vote=3         if        prtvtbes==2
(536 real changes made)

. replace   party_vote=2         if        prtvtbes==3
(54 real changes made)

. replace   party_vote=6         if        prtvtbes==4
(37 real changes made)

. replace   party_vote=0         if        prtvtbes==5
(12 real changes made)

. replace   party_vote=0         if        prtvtbes==6
(16 real changes made)

. replace   party_vote=0         if        prtvtbes==7
(7 real changes made)

. replace   party_vote=0         if        prtvtbes==8
(4 real changes made)

. replace   party_vote=.         if        prtvtbes==9
(0 real changes made)

. replace   party_vote=.         if        prtvtbes==10
(0 real changes made)

. replace   party_vote=0         if        prtvtbes==74
(16 real changes made)

. replace   party_vote=.         if        prtvtbes==75
(0 real changes made)

. replace   party_vote=.         if        prtvtbes==76
(0 real changes made)

. * Finland
. replace   party_vote=6         if        prtvtbfi==1
(304 real changes made)

. replace   party_vote=0         if        prtvtbfi==2
(48 real changes made)

. replace   party_vote=4         if        prtvtbfi==3
(1 real change made)

. replace   party_vote=5         if        prtvtbfi==4
(262 real changes made)

. replace   party_vote=7         if        prtvtbfi==5
(67 real changes made)

. replace   party_vote=5         if        prtvtbfi==6
(40 real changes made)

. replace   party_vote=.         if        prtvtbfi==8
(0 real changes made)

. replace   party_vote=.         if        prtvtbfi==9
(0 real changes made)

. replace   party_vote=.         if        prtvtbfi==11
(0 real changes made)

. replace   party_vote=1         if        prtvtbfi==13
(122 real changes made)

. replace   party_vote=3         if        prtvtbfi==14
(231 real changes made)

. replace   party_vote=2         if        prtvtbfi==15
(57 real changes made)

. replace   party_vote=.         if        prtvtbfi==16
(0 real changes made)

. replace   party_vote=.         if        prtvtbfi==17
(0 real changes made)

. replace   party_vote=.         if        prtvtbfi==18
(0 real changes made)

. replace   party_vote=0         if        prtvtbfi==19
(20 real changes made)

. * France
. replace   party_vote=.         if        prtvtbfr==1
(0 real changes made)

. replace   party_vote=7         if        prtvtbfr==2
(43 real changes made)

. replace   party_vote=2         if        prtvtbfr==3
(18 real changes made)

. replace   party_vote=2         if        prtvtbfr==4
(16 real changes made)

. replace   party_vote=.         if        prtvtbfr==5
(0 real changes made)

. replace   party_vote=4         if        prtvtbfr==6
(14 real changes made)

. replace   party_vote=2         if        prtvtbfr==7
(29 real changes made)

. replace   party_vote=3         if        prtvtbfr==8
(280 real changes made)

. replace   party_vote=.         if        prtvtbfr==9
(0 real changes made)

. replace   party_vote=4         if        prtvtbfr==10
(55 real changes made)

. replace   party_vote=6         if        prtvtbfr==11
(279 real changes made)

. replace   party_vote=1         if        prtvtbfr==12
(91 real changes made)

. replace   party_vote=.         if        prtvtbfr==13
(0 real changes made)

. replace   party_vote=0         if        prtvtbfr==14
(11 real changes made)

. replace   party_vote=0         if        prtvtbfr==15
(11 real changes made)

. replace   party_vote=0         if        prtvtbfr==16
(4 real changes made)

. replace   party_vote=.         if        prtvtbfr==17
(0 real changes made)

. replace   party_vote=.         if        prtvtbfr==18
(0 real changes made)

. * Great Britain
. replace   party_vote=6         if        prtvtgb== 1
(583 real changes made)

. replace   party_vote=3         if        prtvtgb== 2
(490 real changes made)

. replace   party_vote=4         if        prtvtgb== 3
(342 real changes made)

. replace   party_vote=0         if        prtvtgb== 4
(31 real changes made)

. replace   party_vote=0         if        prtvtgb== 5
(16 real changes made)

. replace   party_vote=.         if        prtvtgb== 6
(0 real changes made)

. replace   party_vote=0         if        prtvtgb== 7
(49 real changes made)

. replace   party_vote=6         if        prtvtgb== 11
(9 real changes made)

. replace   party_vote=0         if        prtvtgb== 12
(8 real changes made)

. replace   party_vote=2         if        prtvtgb== 13
(2 real changes made)

. replace   party_vote=3         if        prtvtgb== 14
(1 real change made)

. replace   party_vote=0         if        prtvtgb== 15
(4 real changes made)

. * Greece
. replace   party_vote=3         if        prtvtcgr==1
(600 real changes made)

. replace   party_vote=6         if        prtvtcgr==2
(332 real changes made)

. replace   party_vote=2         if        prtvtcgr==3
(114 real changes made)

. replace   party_vote=7         if        prtvtcgr==4
(53 real changes made)

. replace   party_vote=2         if        prtvtcgr==5
(63 real changes made)

. replace   party_vote=.         if        prtvtcgr==6
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==7
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==8
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==9
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==10
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==11
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==12
(0 real changes made)

. replace   party_vote=.         if        prtvtcgr==13
(0 real changes made)

. replace   party_vote=0         if        prtvtcgr==14
(2 real changes made)

. 
. * Ireland
. replace   party_vote=6         if        prtvtaie==1
(305 real changes made)

. replace   party_vote=5         if        prtvtaie==2
(725 real changes made)

. replace   party_vote=1         if        prtvtaie==3
(20 real changes made)

. replace   party_vote=.         if        prtvtaie==4
(0 real changes made)

. replace   party_vote=3         if        prtvtaie==5
(215 real changes made)

. replace   party_vote=.         if        prtvtaie==6
(0 real changes made)

. replace   party_vote=2         if        prtvtaie==7
(138 real changes made)

. replace   party_vote=2         if        prtvtaie==8
(5 real changes made)

. replace   party_vote=.         if        prtvtaie==9
(0 real changes made)

. replace   party_vote=0         if        prtvtaie==10
(5 real changes made)

. 
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg: no observations
. * Netherlands
. replace   party_vote=4         if        prtvtdnl==1
(288 real changes made)

. replace   party_vote=3         if        prtvtdnl==2
(268 real changes made)

. replace   party_vote=7         if        prtvtdnl==3
(181 real changes made)

. replace   party_vote=5         if        prtvtdnl==4
(199 real changes made)

. replace   party_vote=2         if        prtvtdnl==5
(133 real changes made)

. replace   party_vote=4         if        prtvtdnl==6
(126 real changes made)

. replace   party_vote=1         if        prtvtdnl==7
(110 real changes made)

. replace   party_vote=5         if        prtvtdnl==8
(56 real changes made)

. replace   party_vote=4         if        prtvtdnl==9
(26 real changes made)

. replace   party_vote=.         if        prtvtdnl==10
(0 real changes made)

. replace   party_vote=.         if        prtvtdnl==11
(0 real changes made)

. replace   party_vote=0         if        prtvtdnl==12
(9 real changes made)

. replace   party_vote=.         if        prtvtdnl==13
(0 real changes made)

. * Norway
. replace   party_vote=.         if        prtvtano==1
(0 real changes made)

. replace   party_vote=2         if        prtvtano==2
(94 real changes made)

. replace   party_vote=3         if        prtvtano==3
(412 real changes made)

. replace   party_vote=4         if        prtvtano==4
(53 real changes made)

. replace   party_vote=5         if        prtvtano==5
(66 real changes made)

. replace   party_vote=5         if        prtvtano==6
(65 real changes made)

. replace   party_vote=6         if        prtvtano==7
(240 real changes made)

. replace   party_vote=7         if        prtvtano==8
(184 real changes made)

. replace   party_vote=.         if        prtvtano==9
(0 real changes made)

. replace   party_vote=0         if        prtvtano==10
(12 real changes made)

. 
. * Portugal
. replace   party_vote=2         if        prtvtbpt==1
(45 real changes made)

. replace   party_vote=5         if        prtvtbpt==2
(44 real changes made)

. replace   party_vote=2         if        prtvtbpt==3
(54 real changes made)

. replace   party_vote=.         if        prtvtbpt==4
(0 real changes made)

. replace   party_vote=.         if        prtvtbpt==6
(0 real changes made)

. replace   party_vote=.         if        prtvtbpt==7
(0 real changes made)

. replace   party_vote=7         if        prtvtbpt==8
(4 real changes made)

. replace   party_vote=.         if        prtvtbpt==9
(0 real changes made)

. replace   party_vote=5         if        prtvtbpt==10
(368 real changes made)

. replace   party_vote=3         if        prtvtbpt==11
(430 real changes made)

. replace   party_vote=.         if        prtvtbpt==12
(0 real changes made)

. replace   party_vote=0         if        prtvtbpt==13
(1 real change made)

. * Sweden
. replace   party_vote=5         if        prtvtase==1
(81 real changes made)

. replace   party_vote=4         if        prtvtase==2
(101 real changes made)

. replace   party_vote=5         if        prtvtase==3
(60 real changes made)

. replace   party_vote=1         if        prtvtase==4
(111 real changes made)

. replace   party_vote=6         if        prtvtase==5
(432 real changes made)

. replace   party_vote=3         if        prtvtase==6
(321 real changes made)

. replace   party_vote=2         if        prtvtase==7
(60 real changes made)

. replace   party_vote=.         if        prtvtase==8
(0 real changes made)

. replace   party_vote=.         if        prtvtase==9
(0 real changes made)

. replace   party_vote=7         if        prtvtase==10
(42 real changes made)

. replace   party_vote=0         if        prtvtase==11
(14 real changes made)

. 
. * Definition of value labels
. label def party_vote 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Nationalist"

.         label val party_vote party_vote

.         
.         *** Party closeness (not classified parties are missings)
. * Creation of variable
. gen party_close=.
(28045 missing values generated)

. label var party_close "Party closeness"

. * Austria: no observations
. * Belgium
. replace   party_close=1         if        prtclcbe==1
(54 real changes made)

. replace   party_close=5         if        prtclcbe==2
(107 real changes made)

. replace   party_close=5         if        prtclcbe==3
(137 real changes made)

. replace   party_close=5         if        prtclcbe==4
(3 real changes made)

. replace   party_close=3         if        prtclcbe==5
(92 real changes made)

. replace   party_close=.         if        prtclcbe==6
(0 real changes made)

. replace   party_close=7         if        prtclcbe==7
(25 real changes made)

. replace   party_close=4         if        prtclcbe==8
(83 real changes made)

. replace   party_close=5         if        prtclcbe==9
(44 real changes made)

. replace   party_close=1         if        prtclcbe==10
(55 real changes made)

. replace   party_close=7         if        prtclcbe==11
(3 real changes made)

. replace   party_close=4         if        prtclcbe==12
(94 real changes made)

. replace   party_close=3         if        prtclcbe==13
(117 real changes made)

. replace   party_close=.         if        prtclcbe==14
(0 real changes made)

. replace   party_close=.         if        prtclcbe==15
(0 real changes made)

. replace   party_close=0         if        prtclcbe==16
(2 real changes made)

. replace   party_close=.         if        prtclcbe==17
(0 real changes made)

. replace   party_close=.         if        prtclcbe==18
(0 real changes made)

. * Switzerland
. replace   party_close=4         if        prtclcch==1
(0 real changes made)

. replace   party_close=5         if        prtclcch==2
(98 real changes made)

. replace   party_close=3         if        prtclcch==3
(199 real changes made)

. replace   party_close=7         if        prtclcch==4
(213 real changes made)

. replace   party_close=4         if        prtclcch==5
(0 real changes made)

. replace   party_close=.         if        prtclcch==6
(0 real changes made)

. replace   party_close=2         if        prtclcch==7
(3 real changes made)

. replace   party_close=1         if        prtclcch==8
(66 real changes made)

. replace   party_close=.         if        prtclcch==9
(0 real changes made)

. replace   party_close=7         if        prtclcch==10
(2 real changes made)

. replace   party_close=7         if        prtclcch==11
(6 real changes made)

. replace   party_close=5         if        prtclcch==12
(5 real changes made)

. replace   party_close=7         if        prtclcch==13
(2 real changes made)

. replace   party_close=.         if        prtclcch==18
(0 real changes made)

. replace   party_close=.         if        prtclcch==19
(0 real changes made)

. replace   party_close=0         if        prtclcch==20
(6 real changes made)

. 
. * Germany
. replace   party_close=3         if        prtclcde==1
(380 real changes made)

. replace   party_close=5         if        prtclcde==2
(465 real changes made)

. replace   party_close=1         if        prtclcde==3
(262 real changes made)

. replace   party_close=4         if        prtclcde==4
(58 real changes made)

. replace   party_close=2         if        prtclcde==5
(158 real changes made)

. replace   party_close=7         if        prtclcde==6
(4 real changes made)

. replace   party_close=7         if        prtclcde==7
(14 real changes made)

. replace   party_close=0         if        prtclcde==8
(27 real changes made)

. * Denmark
. replace   party_close=3         if        prtclbdk==1
(273 real changes made)

. replace   party_close=1         if        prtclbdk==2
(60 real changes made)

. replace   party_close=6         if        prtclbdk==3
(65 real changes made)

. replace   party_close=1         if        prtclbdk==4
(196 real changes made)

. replace   party_close=7         if        prtclbdk==5
(128 real changes made)

. replace   party_close=5         if        prtclbdk==6
(7 real changes made)

. replace   party_close=4         if        prtclbdk==7
(255 real changes made)

. replace   party_close=0         if        prtclbdk==8
(24 real changes made)

. replace   party_close=2         if        prtclbdk==9
(30 real changes made)

. replace   party_close=0         if        prtclbdk==10
(2 real changes made)

. 
. * Spain
. replace   party_close=6         if        prtclbes==1
(243 real changes made)

. replace   party_close=3         if        prtclbes==2
(318 real changes made)

. replace   party_close=2         if        prtclbes==3
(45 real changes made)

. replace   party_close=6         if        prtclbes==4
(38 real changes made)

. replace   party_close=0         if        prtclbes==5
(17 real changes made)

. replace   party_close=0         if        prtclbes==6
(16 real changes made)

. replace   party_close=0         if        prtclbes==7
(7 real changes made)

. replace   party_close=0         if        prtclbes==8
(4 real changes made)

. replace   party_close=.         if        prtclbes==9
(0 real changes made)

. replace   party_close=.         if        prtclbes==10
(0 real changes made)

. replace   party_close=0         if        prtclbes==74
(32 real changes made)

. replace   party_close=.         if        prtclbes==75
(0 real changes made)

. replace   party_close=.         if        prtclbes==76
(0 real changes made)

. * Finland
. replace   party_close=6         if        prtclbfi==1
(213 real changes made)

. replace   party_close=0         if        prtclbfi==2
(34 real changes made)

. replace   party_close=4         if        prtclbfi==3
(3 real changes made)

. replace   party_close=5         if        prtclbfi==4
(169 real changes made)

. replace   party_close=7         if        prtclbfi==5
(121 real changes made)

. replace   party_close=5         if        prtclbfi==6
(33 real changes made)

. replace   party_close=.         if        prtclbfi==8
(0 real changes made)

. replace   party_close=.         if        prtclbfi==9
(0 real changes made)

. replace   party_close=.         if        prtclbfi==11
(0 real changes made)

. replace   party_close=1         if        prtclbfi==13
(114 real changes made)

. replace   party_close=3         if        prtclbfi==14
(155 real changes made)

. replace   party_close=2         if        prtclbfi==15
(46 real changes made)

. replace   party_close=.         if        prtclbfi==16
(0 real changes made)

. replace   party_close=.         if        prtclbfi==17
(0 real changes made)

. replace   party_close=.         if        prtclbfi==18
(0 real changes made)

. replace   party_close=0         if        prtclbfi==19
(13 real changes made)

. * France
. replace   party_close=.         if        prtclcfr==1
(0 real changes made)

. replace   party_close=7         if        prtclcfr==2
(18 real changes made)

. replace   party_close=2         if        prtclcfr==3
(42 real changes made)

. replace   party_close=2         if        prtclcfr==4
(11 real changes made)

. replace   party_close=.         if        prtclcfr==5
(0 real changes made)

. replace   party_close=4         if        prtclcfr==6
(31 real changes made)

. replace   party_close=2         if        prtclcfr==7
(16 real changes made)

. replace   party_close=3         if        prtclcfr==8
(272 real changes made)

. replace   party_close=.         if        prtclcfr==9
(0 real changes made)

. replace   party_close=4         if        prtclcfr==10
(108 real changes made)

. replace   party_close=6         if        prtclcfr==11
(0 real changes made)

. replace   party_close=1         if        prtclcfr==12
(0 real changes made)

. replace   party_close=.         if        prtclcfr==13
(0 real changes made)

. replace   party_close=0         if        prtclcfr==14
(0 real changes made)

. replace   party_close=0         if        prtclcfr==15
(14 real changes made)

. replace   party_close=0         if        prtclcfr==16
(0 real changes made)

. replace   party_close=.         if        prtclcfr==17
(0 real changes made)

. replace   party_close=.         if        prtclcfr==18
(0 real changes made)

. * Great Britain
. replace   party_close=6         if        prtclgb== 1
(453 real changes made)

. replace   party_close=3         if        prtclgb== 2
(467 real changes made)

. replace   party_close=4         if        prtclgb== 3
(151 real changes made)

. replace   party_close=0         if        prtclgb== 4
(18 real changes made)

. replace   party_close=0         if        prtclgb== 5
(7 real changes made)

. replace   party_close=.         if        prtclgb== 6
(0 real changes made)

. replace   party_close=0         if        prtclgb== 7
(29 real changes made)

. replace   party_close=6         if        prtclgb== 11
(8 real changes made)

. replace   party_close=0         if        prtclgb== 12
(3 real changes made)

. replace   party_close=2         if        prtclgb== 13
(2 real changes made)

. replace   party_close=3         if        prtclgb== 14
(3 real changes made)

. replace   party_close=0         if        prtclgb== 15
(3 real changes made)

. * Greece
. replace   party_close=3         if        prtclcgr==1
(306 real changes made)

. replace   party_close=6         if        prtclcgr==2
(231 real changes made)

. replace   party_close=2         if        prtclcgr==3
(100 real changes made)

. replace   party_close=7         if        prtclcgr==4
(30 real changes made)

. replace   party_close=2         if        prtclcgr==5
(34 real changes made)

. replace   party_close=.         if        prtclcgr==6
(0 real changes made)

. replace   party_close=.         if        prtclcgr==7
(0 real changes made)

. replace   party_close=.         if        prtclcgr==8
(0 real changes made)

. replace   party_close=.         if        prtclcgr==9
(0 real changes made)

. replace   party_close=.         if        prtclcgr==10
(0 real changes made)

. replace   party_close=.         if        prtclcgr==11
(0 real changes made)

. replace   party_close=.         if        prtclcgr==12
(0 real changes made)

. replace   party_close=.         if        prtclcgr==13
(0 real changes made)

. replace   party_close=0         if        prtclcgr==14
(0 real changes made)

. 
. * Ireland
. replace   party_close=6         if        prtclaie==1
(169 real changes made)

. replace   party_close=5         if        prtclaie==2
(218 real changes made)

. replace   party_close=1         if        prtclaie==3
(16 real changes made)

. replace   party_close=.         if        prtclaie==4
(0 real changes made)

. replace   party_close=3         if        prtclaie==5
(96 real changes made)

. replace   party_close=.         if        prtclaie==6
(0 real changes made)

. replace   party_close=2         if        prtclaie==7
(73 real changes made)

. replace   party_close=2         if        prtclaie==8
(3 real changes made)

. replace   party_close=.         if        prtclaie==9
(0 real changes made)

. replace   party_close=0         if        prtclaie==10
(2 real changes made)

. 
. * Iceland: no observations
. * Italy: no observations
. * Luxembourg: no observations
. * Netherlands
. replace   party_close=4         if        prtclcnl==1
(245 real changes made)

. replace   party_close=3         if        prtclcnl==2
(177 real changes made)

. replace   party_close=7         if        prtclcnl==3
(131 real changes made)

. replace   party_close=5         if        prtclcnl==4
(151 real changes made)

. replace   party_close=2         if        prtclcnl==5
(116 real changes made)

. replace   party_close=4         if        prtclcnl==6
(91 real changes made)

. replace   party_close=1         if        prtclcnl==7
(109 real changes made)

. replace   party_close=5         if        prtclcnl==8
(53 real changes made)

. replace   party_close=4         if        prtclcnl==9
(23 real changes made)

. replace   party_close=.         if        prtclcnl==10
(0 real changes made)

. replace   party_close=.         if        prtclcnl==11
(0 real changes made)

. replace   party_close=0         if        prtclcnl==12
(15 real changes made)

. replace   party_close=.         if        prtclcnl==13
(0 real changes made)

. * Norway
. replace   party_close=.         if        prtclano==1
(0 real changes made)

. replace   party_close=2         if        prtclano==2
(74 real changes made)

. replace   party_close=3         if        prtclano==3
(333 real changes made)

. replace   party_close=4         if        prtclano==4
(41 real changes made)

. replace   party_close=5         if        prtclano==5
(61 real changes made)

. replace   party_close=5         if        prtclano==6
(52 real changes made)

. replace   party_close=6         if        prtclano==7
(218 real changes made)

. replace   party_close=7         if        prtclano==8
(151 real changes made)

. replace   party_close=.         if        prtclano==9
(0 real changes made)

. replace   party_close=0         if        prtclano==10
(7 real changes made)

. 
. * Portugal
. replace   party_close=2         if        prtclcpt==1
(33 real changes made)

. replace   party_close=5         if        prtclcpt==2
(35 real changes made)

. replace   party_close=2         if        prtclcpt==3
(61 real changes made)

. replace   party_close=.         if        prtclcpt==4
(0 real changes made)

. replace   party_close=.         if        prtclcpt==6
(0 real changes made)

. replace   party_close=.         if        prtclcpt==7
(0 real changes made)

. replace   party_close=7         if        prtclcpt==8
(2 real changes made)

. replace   party_close=.         if        prtclcpt==9
(0 real changes made)

. replace   party_close=5         if        prtclcpt==10
(316 real changes made)

. replace   party_close=3         if        prtclcpt==11
(324 real changes made)

. replace   party_close=.         if        prtclcpt==12
(0 real changes made)

. replace   party_close=0         if        prtclcpt==13
(0 real changes made)

. * Sweden
. replace   party_close=5         if        prtclase==1
(55 real changes made)

. replace   party_close=4         if        prtclase==2
(96 real changes made)

. replace   party_close=5         if        prtclase==3
(39 real changes made)

. replace   party_close=1         if        prtclase==4
(106 real changes made)

. replace   party_close=6         if        prtclase==5
(354 real changes made)

. replace   party_close=3         if        prtclase==6
(283 real changes made)

. replace   party_close=2         if        prtclase==7
(56 real changes made)

. replace   party_close=.         if        prtclase==8
(0 real changes made)

. replace   party_close=.         if        prtclase==9
(0 real changes made)

. replace   party_close=7         if        prtclase==10
(27 real changes made)

. replace   party_close=0         if        prtclase==11
(15 real changes made)

. 
. * Definition of value labels
. label def party_close 0 "Other" 1 "Green" 2 "Communist" 3 "Social democratic" ///
>         4 "Liberal"     5 "Christian democratic" 6 "Conservative" 7 "Nationalist"

. label val party_close party_close

. 
. 
. *** Voter participation
. * Creation of variable 
. gen voted=vote==1

. replace voted=. if vote>2
(2541 real changes made, 2541 to missing)

. lab var voted "Voter participation"

. * Definition of value label
. lab define voted 1 "Voter" 0 "Non-voter"

. lab values voted voted

. 
. 
. save "ESSrecoded5.dta", replace
file ESSrecoded5.dta saved

. 
. *----------------------------------------------------------------------------------------*
. *       6. Merge
. *----------------------------------------------------------------------------------------*
. 
. 
. use "ESSrecoded1.dta"

. 
. append using "ESSrecoded2.dta"
(label voted already defined)
(label party_close already defined)
(label party_vote already defined)
(label polint already defined)
(label parttime already defined)
(label temp already defined)
(label unemployed5y already defined)
(label mod_winners1 already defined)
(label mod_losers4 already defined)
(label mod_losers1 already defined)
(label gender already defined)
(label sector already defined)
(label class8_r already defined)
(label class16_r already defined)
(label selfem_mainjob already defined)
(label emplno_r already defined)
(label emplrel_r already defined)
(label glob_losers1 already defined)
(label offshore2 already defined)
(label offshore4 already defined)
(label educlvl already defined)
(label inwemm already defined)
(label inwehh already defined)
(label inwsmm already defined)
(label inwshh already defined)
(label inwyr already defined)
(label inwmm already defined)
(label inwdd already defined)
(label intewde already defined)
(label regionsi already defined)
(label regionse already defined)
(label regionpt already defined)
(label regionpl already defined)
(label regionno already defined)
(label regionnl already defined)
(label regionlu already defined)
(label regionit already defined)
(label regionie already defined)
(label regionhu already defined)
(label regiongr already defined)
(label regiongb already defined)
(label regionfr already defined)
(label regiones already defined)
(label regiondk already defined)
(label regionde already defined)
(label regioncz already defined)
(label regionbe already defined)
(label regionat already defined)
(label impfun already defined)
(label imptrad already defined)
(label impenv already defined)
(label iplylfr already defined)
(label iprspot already defined)
(label ipbhprp already defined)
(label ipadvnt already defined)
(label ipstrgv already defined)
(label ipsuces already defined)
(label iphlppl already defined)
(label impfree already defined)
(label ipgdtim already defined)
(label ipmodst already defined)
(label ipudrst already defined)
(label ipfrule already defined)
(label impdiff already defined)
(label impsafe already defined)
(label ipshabt already defined)
(label ipeqopt already defined)
(label imprich already defined)
(label ipcrtiv already defined)
(label chldhhe already defined)
(label chldhm already defined)
(label dvrcdev already defined)
(label lvgptne already defined)
(label lvgptn already defined)
(label lvgoptn already defined)
(label lvghw already defined)
(label martlfr already defined)
(label marital already defined)
(label atncrse already defined)
(label jbspvm already defined)
(label emplnom already defined)
(label emprm14 already defined)
(label edulvlma already defined)
(label jbspvf already defined)
(label emplnof already defined)
(label emprf14 already defined)
(label edulvlfa already defined)
(label wkhtotp already defined)
(label njbspvp already defined)
(label jbspvp already defined)
(label emplnop already defined)
(label emprelp already defined)
(label iscocop already defined)
(label crpdwkp already defined)
(label mnactp already defined)
(label dngnap already defined)
(label dngrefp already defined)
(label dngnapp already defined)
(label dngdkp already defined)
(label dngothp already defined)
(label hswrkp already defined)
(label cmsrvp already defined)
(label rtrdp already defined)
(label dsbldp already defined)
(label uemplip already defined)
(label uemplap already defined)
(label edctnp already defined)
(label pdwrkp already defined)
(label edulvlpa already defined)
(label partner already defined)
(label brwmny already defined)
(label hincfel already defined)
(label hinctnt already defined)
(label mbtru already defined)
(label uemp5yr already defined)
(label uemp12m already defined)
(label uemp3m already defined)
(label iscoco already defined)
(label wkhtot already defined)
(label wkhct already defined)
(label njbspv already defined)
(label jbspv already defined)
(label estsz already defined)
(label emplno already defined)
(label emplrel already defined)
(label pdjobyr already defined)
(label pdjobev already defined)
(label crpdwk already defined)
(label mnactic already defined)
(label mainact already defined)
(label dngna already defined)
(label dngref already defined)
(label dngdk already defined)
(label dngoth already defined)
(label hswrk already defined)
(label cmsrv already defined)
(label rtrd already defined)
(label dsbld already defined)
(label uempli already defined)
(label uempla already defined)
(label edctn already defined)
(label pdwrk already defined)
(label eduyrs already defined)
(label edlvse already defined)
(label edlvpt already defined)
(label edlvno already defined)
(label edlvnl already defined)
(label edlvlu already defined)
(label edlvie already defined)
(label edlvgr already defined)
(label edlvfr already defined)
(label edlvcz already defined)
(label edlvbe already defined)
(label eisced already defined)
(label edulvla already defined)
(label domicil already defined)
(label yrbrn15 already defined)
(label yrbrn14 already defined)
(label yrbrn13 already defined)
(label yrbrn12 already defined)
(label yrbrn11 already defined)
(label yrbrn10 already defined)
(label yrbrn9 already defined)
(label yrbrn8 already defined)
(label yrbrn7 already defined)
(label yrbrn6 already defined)
(label yrbrn5 already defined)
(label yrbrn4 already defined)
(label yrbrn3 already defined)
(label yrbrn2 already defined)
(label agea already defined)
(label yrbrn already defined)
(label gndr15 already defined)
(label gndr14 already defined)
(label gndr13 already defined)
(label gndr12 already defined)
(label gndr11 already defined)
(label gndr10 already defined)
(label gndr9 already defined)
(label gndr8 already defined)
(label gndr7 already defined)
(label gndr6 already defined)
(label gndr5 already defined)
(label gndr4 already defined)
(label gndr3 already defined)
(label gndr2 already defined)
(label gndr already defined)
(label hhmmb already defined)
(label mocntr already defined)
(label facntr already defined)
(label blgetmg already defined)
(label livecntr already defined)
(label brncntr already defined)
(label ctzcntr already defined)
(label dscrna already defined)
(label dscrnap already defined)
(label dscrref already defined)
(label dscrdk already defined)
(label dscroth already defined)
(label dscrdsb already defined)
(label dscrsex already defined)
(label dscrgnd already defined)
(label dscrage already defined)
(label dscretn already defined)
(label dscrlng already defined)
(label dscrrlg already defined)
(label dscrntn already defined)
(label dscrrce already defined)
(label dscrgrp already defined)
(label pray already defined)
(label rlgatnd already defined)
(label rlgdgr already defined)
(label rlgdnme already defined)
(label rlgblge already defined)
(label rlgdnm already defined)
(label rlgblg already defined)
(label hlthhmp already defined)
(label health already defined)
(label aesfdrk already defined)
(label crmvct already defined)
(label sclact already defined)
(label inmdisc already defined)
(label sclmeet already defined)
(label happy already defined)
(label imwbcnt already defined)
(label imueclt already defined)
(label imbgeco already defined)
(label impcntr already defined)
(label imdfetn already defined)
(label imsmetn already defined)
(label scnsenv already defined)
(label prtyban already defined)
(label freehms already defined)
(label gincdif already defined)
(label stfhlth already defined)
(label stfedu already defined)
(label stfdem already defined)
(label stfgov already defined)
(label stfeco already defined)
(label stflife already defined)
(label lrscale already defined)
(label prtmbse already defined)
(label prtmbpt already defined)
(label prtmbno already defined)
(label prtmblu already defined)
(label prtmbie already defined)
(label prtmbhu already defined)
(label prtmbgb already defined)
(label prtmbfr already defined)
(label prtmbfi already defined)
(label prtmbdk already defined)
(label prtmbcz already defined)
(label prtmbch already defined)
(label prtmbat already defined)
(label mmbprty already defined)
(label prtdgcl already defined)
(label prtclse already defined)
(label prtclno already defined)
(label prtcllu already defined)
(label prtclie already defined)
(label prtclhu already defined)
(label prtclgb already defined)
(label prtclfr already defined)
(label prtclfi already defined)
(label prtcldk already defined)
(label prtclcz already defined)
(label prtclch already defined)
(label prtclat already defined)
(label clsprty already defined)
(label bctprd already defined)
(label pbldmn already defined)
(label sgnptit already defined)
(label badge already defined)
(label wrkorg already defined)
(label wrkprty already defined)
(label contplt already defined)
(label prtvtse already defined)
(label prtvtpt already defined)
(label prtvtpl already defined)
(label prtvtno already defined)
(label prtvtlu already defined)
(label prtvtie already defined)
(label prtvthu already defined)
(label prtvtgb already defined)
(label prtvtfr already defined)
(label prtvtfi already defined)
(label prtvtdk already defined)
(label prtvtcz already defined)
(label prtvtch already defined)
(label prtvtat already defined)
(label vote already defined)
(label trstun already defined)
(label trstep already defined)
(label trstplt already defined)
(label trstplc already defined)
(label trstlgl already defined)
(label trstprl already defined)
(label poldcs already defined)
(label polcmpl already defined)
(label polintr already defined)
(label pplhlp already defined)
(label pplfair already defined)
(label ppltrst already defined)
(label netuse already defined)
(label nwsppol already defined)
(label nwsptot already defined)
(label rdpol already defined)
(label rdtot already defined)
(label tvpol already defined)
(label tvtot already defined)

. append using "ESSrecoded3.dta"
(label voted already defined)
(label party_close already defined)
(label party_vote already defined)
(label polint already defined)
(label parttime already defined)
(label temp already defined)
(label unemployed5y already defined)
(label mod_winners1 already defined)
(label mod_losers4 already defined)
(label mod_losers1 already defined)
(label gender already defined)
(label sector already defined)
(label class8_r already defined)
(label class16_r already defined)
(label selfem_mainjob already defined)
(label emplno_r already defined)
(label emplrel_r already defined)
(label glob_losers1 already defined)
(label offshore2 already defined)
(label offshore4 already defined)
(label educlvl already defined)
(label supqyr already defined)
(label supqmm already defined)
(label supqdd already defined)
(label supqad2 already defined)
(label supqad1 already defined)
(label inwemm already defined)
(label inwehh already defined)
(label inwsmm already defined)
(label inwshh already defined)
(label intewde already defined)
(label regionua already defined)
(label regionsk already defined)
(label regionsi already defined)
(label regionse already defined)
(label regionpt already defined)
(label regionpl already defined)
(label regionno already defined)
(label regionnl already defined)
(label regionhu already defined)
(label regiongb already defined)
(label regionfr already defined)
(label regioafi already defined)
(label regionee already defined)
(label regiondk already defined)
(label regionde already defined)
(label regioach already defined)
(label regionbe already defined)
(label regionat already defined)
(label impfun already defined)
(label imptrad already defined)
(label impenv already defined)
(label iplylfr already defined)
(label iprspot already defined)
(label ipbhprp already defined)
(label ipadvnt already defined)
(label ipstrgv already defined)
(label ipsuces already defined)
(label iphlppl already defined)
(label impfree already defined)
(label ipgdtim already defined)
(label ipmodst already defined)
(label ipudrst already defined)
(label ipfrule already defined)
(label impdiff already defined)
(label impsafe already defined)
(label ipshabt already defined)
(label ipeqopt already defined)
(label imprich already defined)
(label ipcrtiv already defined)
(label chldhhe already defined)
(label chldhm already defined)
(label dvrcdev already defined)
(label lvgptne already defined)
(label atncrse already defined)
(label occm14a already defined)
(label jbspvm already defined)
(label emplnom already defined)
(label emprm14 already defined)
(label edulvlma already defined)
(label occf14a already defined)
(label jbspvf already defined)
(label emplnof already defined)
(label emprf14 already defined)
(label edulvlfa already defined)
(label wkhtotp already defined)
(label ioactp already defined)
(label wkdcorp already defined)
(label njbspvp already defined)
(label jbspvp already defined)
(label emplnop already defined)
(label emprelp already defined)
(label iscocop already defined)
(label crpdwkp already defined)
(label mnactp already defined)
(label dngnap already defined)
(label dngrefp already defined)
(label dngnapp already defined)
(label dngdkp already defined)
(label dngothp already defined)
(label hswrkp already defined)
(label cmsrvp already defined)
(label rtrdp already defined)
(label dsbldp already defined)
(label uemplip already defined)
(label uemplap already defined)
(label edctnp already defined)
(label pdwrkp already defined)
(label edulvlpa already defined)
(label partner already defined)
(label brwmny already defined)
(label hincfel already defined)
(label hinctnt already defined)
(label hincsrca already defined)
(label mbtru already defined)
(label uemp5yr already defined)
(label uemp12m already defined)
(label uemp3m already defined)
(label wrkac6m already defined)
(label nacer11 already defined)
(label iscoco already defined)
(label wkhtot already defined)
(label wkhct already defined)
(label iorgact already defined)
(label wkdcorga already defined)
(label njbspv already defined)
(label jbspv already defined)
(label estsz already defined)
(label wrkctra already defined)
(label emplno already defined)
(label emplrel already defined)
(label pdjobyr already defined)
(label pdjobev already defined)
(label crpdwk already defined)
(label mnactic already defined)
(label mainact already defined)
(label dngna already defined)
(label dngref already defined)
(label dngdk already defined)
(label dngoth already defined)
(label hswrk already defined)
(label cmsrv already defined)
(label rtrd already defined)
(label dsbld already defined)
(label uempli already defined)
(label uempla already defined)
(label edctn already defined)
(label pdwrk already defined)
(label eduyrs already defined)
(label edufld already defined)
(label edlvua already defined)
(label edlvsk already defined)
(label edlvapl already defined)
(label edlvno already defined)
(label edlvnl already defined)
(label edlvahu already defined)
(label edlvgb already defined)
(label edlvaes already defined)
(label edlvadk already defined)
(label edlvbe already defined)
(label eisced already defined)
(label edulvla already defined)
(label domicil already defined)
(label rshipa15 already defined)
(label rshipa14 already defined)
(label rshipa13 already defined)
(label rshipa12 already defined)
(label rshipa11 already defined)
(label rshipa10 already defined)
(label rshipa9 already defined)
(label rshipa8 already defined)
(label rshipa7 already defined)
(label rshipa6 already defined)
(label rshipa5 already defined)
(label rshipa4 already defined)
(label rshipa3 already defined)
(label rshipa2 already defined)
(label yrbrn15 already defined)
(label yrbrn14 already defined)
(label yrbrn13 already defined)
(label yrbrn12 already defined)
(label yrbrn11 already defined)
(label yrbrn10 already defined)
(label yrbrn9 already defined)
(label yrbrn8 already defined)
(label yrbrn7 already defined)
(label yrbrn6 already defined)
(label yrbrn5 already defined)
(label yrbrn4 already defined)
(label yrbrn3 already defined)
(label yrbrn2 already defined)
(label agea already defined)
(label yrbrn already defined)
(label gndr15 already defined)
(label gndr14 already defined)
(label gndr13 already defined)
(label gndr12 already defined)
(label gndr11 already defined)
(label gndr10 already defined)
(label gndr9 already defined)
(label gndr8 already defined)
(label gndr7 already defined)
(label gndr6 already defined)
(label gndr5 already defined)
(label gndr4 already defined)
(label gndr3 already defined)
(label gndr2 already defined)
(label gndr already defined)
(label hhmmb already defined)
(label mocntr already defined)
(label facntr already defined)
(label blgetmg already defined)
(label livecntr already defined)
(label brncntr already defined)
(label ctzcntr already defined)
(label dscrna already defined)
(label dscrnap already defined)
(label dscrref already defined)
(label dscrdk already defined)
(label dscroth already defined)
(label dscrdsb already defined)
(label dscrsex already defined)
(label dscrgnd already defined)
(label dscrage already defined)
(label dscretn already defined)
(label dscrlng already defined)
(label dscrrlg already defined)
(label dscrntn already defined)
(label dscrrce already defined)
(label dscrgrp already defined)
(label pray already defined)
(label rlgatnd already defined)
(label rlgdgr already defined)
(label rlgdnme already defined)
(label rlgblge already defined)
(label rlgdnm already defined)
(label rlgblg already defined)
(label hlthhmp already defined)
(label health already defined)
(label aesfdrk already defined)
(label crmvct already defined)
(label sclact already defined)
(label inmdisc already defined)
(label sclmeet already defined)
(label happy already defined)
(label imwbcnt already defined)
(label imueclt already defined)
(label imbgeco already defined)
(label impcntr already defined)
(label imdfetn already defined)
(label imsmetn already defined)
(label euftf already defined)
(label scnsenv already defined)
(label prtyban already defined)
(label freehms already defined)
(label gincdif already defined)
(label stfhlth already defined)
(label stfedu already defined)
(label stfdem already defined)
(label stfgov already defined)
(label stfeco already defined)
(label stflife already defined)
(label lrscale already defined)
(label prtmbse already defined)
(label prtmbno already defined)
(label prtmbnl already defined)
(label prtmbie already defined)
(label prtmbfi already defined)
(label prtmbaes already defined)
(label prtmbabe already defined)
(label mmbprty already defined)
(label prtdgcl already defined)
(label prtclse already defined)
(label prtclno already defined)
(label prtclnl already defined)
(label prtclfi already defined)
(label prtclaes already defined)
(label prtclabe already defined)
(label clsprty already defined)
(label bctprd already defined)
(label pbldmn already defined)
(label sgnptit already defined)
(label badge already defined)
(label wrkorg already defined)
(label wrkprty already defined)
(label contplt already defined)
(label prtvtse already defined)
(label prtvtno already defined)
(label prtvtie already defined)
(label prtvtfi already defined)
(label prtvtaes already defined)
(label prtvtabe already defined)
(label vote already defined)
(label trstun already defined)
(label trstep already defined)
(label trstprt already defined)
(label trstplt already defined)
(label trstplc already defined)
(label trstlgl already defined)
(label trstprl already defined)
(label poldcs already defined)
(label polcmpl already defined)
(label polintr already defined)
(label pplhlp already defined)
(label pplfair already defined)
(label ppltrst already defined)
(label netuse already defined)
(label nwsppol already defined)
(label nwsptot already defined)
(label rdpol already defined)
(label rdtot already defined)
(label tvpol already defined)
(label tvtot already defined)

. append using "ESSrecoded4.dta"
(label voted already defined)
(label party_close already defined)
(label party_vote already defined)
(label polint already defined)
(label parttime already defined)
(label temp already defined)
(label unemployed5y already defined)
(label mod_winners1 already defined)
(label mod_losers4 already defined)
(label mod_losers1 already defined)
(label gender already defined)
(label sector already defined)
(label class8_r already defined)
(label class16_r already defined)
(label selfem_mainjob already defined)
(label emplno_r already defined)
(label emplrel_r already defined)
(label glob_losers1 already defined)
(label offshore2 already defined)
(label offshore4 already defined)
(label educlvl already defined)
(label supqyr already defined)
(label supqmm already defined)
(label supqdd already defined)
(label supqad2 already defined)
(label supqad1 already defined)
(label inwemm already defined)
(label inwehh already defined)
(label inwyye already defined)
(label inwmme already defined)
(label inwdde already defined)
(label inwsmm already defined)
(label inwshh already defined)
(label inwyys already defined)
(label inwmms already defined)
(label inwdds already defined)
(label intewde already defined)
(label regionua already defined)
(label regiontr already defined)
(label regionsk already defined)
(label regionsi already defined)
(label regionse already defined)
(label regionru already defined)
(label regionro already defined)
(label regionpl already defined)
(label regionno already defined)
(label regionnl already defined)
(label regionlv already defined)
(label regionil already defined)
(label regionhu already defined)
(label regiongb already defined)
(label regionfr already defined)
(label regioafi already defined)
(label regioaes already defined)
(label regionee already defined)
(label regionde already defined)
(label regioncy already defined)
(label regioach already defined)
(label regionbg already defined)
(label regionbe already defined)
(label regionat already defined)
(label impfun already defined)
(label imptrad already defined)
(label impenv already defined)
(label iplylfr already defined)
(label iprspot already defined)
(label ipbhprp already defined)
(label ipadvnt already defined)
(label ipstrgv already defined)
(label ipsuces already defined)
(label iphlppl already defined)
(label impfree already defined)
(label ipgdtim already defined)
(label ipmodst already defined)
(label ipudrst already defined)
(label ipfrule already defined)
(label impdiff already defined)
(label impsafe already defined)
(label ipshabt already defined)
(label ipeqopt already defined)
(label imprich already defined)
(label ipcrtiv already defined)
(label inttph already defined)
(label mbltph already defined)
(label fxltph already defined)
(label chldhhe already defined)
(label chldhm already defined)
(label dvrcdev already defined)
(label lvgptne already defined)
(label lvgptna already defined)
(label lvghwa already defined)
(label maritala already defined)
(label atncrse already defined)
(label jbspvm already defined)
(label emplnom already defined)
(label emprm14 already defined)
(label edulvlma already defined)
(label jbspvf already defined)
(label emplnof already defined)
(label emprf14 already defined)
(label edulvlfa already defined)
(label wkhtotp already defined)
(label ioactp already defined)
(label wkdcorp already defined)
(label njbspvp already defined)
(label jbspvp already defined)
(label emplnop already defined)
(label emprelp already defined)
(label iscocop already defined)
(label crpdwkp already defined)
(label mnactp already defined)
(label dngnap already defined)
(label dngrefp already defined)
(label dngnapp already defined)
(label dngdkp already defined)
(label dngothp already defined)
(label hswrkp already defined)
(label cmsrvp already defined)
(label rtrdp already defined)
(label dsbldp already defined)
(label uemplip already defined)
(label uemplap already defined)
(label edctnp already defined)
(label pdwrkp already defined)
(label edulvlpa already defined)
(label partner already defined)
(label brwmny already defined)
(label hincfel already defined)
(label hincsrca already defined)
(label mbtru already defined)
(label uemp5yr already defined)
(label uemp12m already defined)
(label uemp3m already defined)
(label wrkac6m already defined)
(label iscoco already defined)
(label nacer11 already defined)
(label wkhtot already defined)
(label wkhct already defined)
(label iorgact already defined)
(label wkdcorga already defined)
(label njbspv already defined)
(label jbspv already defined)
(label estsz already defined)
(label wrkctra already defined)
(label emplno already defined)
(label emplrel already defined)
(label pdjobyr already defined)
(label pdjobev already defined)
(label crpdwk already defined)
(label mnactic already defined)
(label mainact already defined)
(label dngna already defined)
(label dngref already defined)
(label dngdk already defined)
(label dngoth already defined)
(label hswrk already defined)
(label cmsrv already defined)
(label rtrd already defined)
(label dsbld already defined)
(label uempli already defined)
(label uempla already defined)
(label edctn already defined)
(label pdwrk already defined)
(label eduyrs already defined)
(label edufld already defined)
(label edlvase already defined)
(label edlvru already defined)
(label edlvro already defined)
(label edlvnl already defined)
(label edlvlv already defined)
(label edlvgb already defined)
(label edlvaes already defined)
(label edlvadk already defined)
(label edlvcz already defined)
(label eisced already defined)
(label edulvla already defined)
(label domicil already defined)
(label rshipa16 already defined)
(label rshipa15 already defined)
(label rshipa14 already defined)
(label rshipa13 already defined)
(label rshipa12 already defined)
(label rshipa11 already defined)
(label rshipa10 already defined)
(label rshipa9 already defined)
(label rshipa8 already defined)
(label rshipa7 already defined)
(label rshipa6 already defined)
(label rshipa5 already defined)
(label rshipa4 already defined)
(label rshipa3 already defined)
(label rshipa2 already defined)
(label yrbrn16 already defined)
(label yrbrn15 already defined)
(label yrbrn14 already defined)
(label yrbrn13 already defined)
(label yrbrn12 already defined)
(label yrbrn11 already defined)
(label yrbrn10 already defined)
(label yrbrn9 already defined)
(label yrbrn8 already defined)
(label yrbrn7 already defined)
(label yrbrn6 already defined)
(label yrbrn5 already defined)
(label yrbrn4 already defined)
(label yrbrn3 already defined)
(label yrbrn2 already defined)
(label agea already defined)
(label yrbrn already defined)
(label gndr16 already defined)
(label gndr15 already defined)
(label gndr14 already defined)
(label gndr13 already defined)
(label gndr12 already defined)
(label gndr11 already defined)
(label gndr10 already defined)
(label gndr9 already defined)
(label gndr8 already defined)
(label gndr7 already defined)
(label gndr6 already defined)
(label gndr5 already defined)
(label gndr4 already defined)
(label gndr3 already defined)
(label gndr2 already defined)
(label gndr already defined)
(label hhmmb already defined)
(label mnrgtjb already defined)
(label wmcpwrk already defined)
(label mocntr already defined)
(label facntr already defined)
(label blgetmg already defined)
(label livecntr already defined)
(label brncntr already defined)
(label ctzcntr already defined)
(label dscrna already defined)
(label dscrnap already defined)
(label dscrref already defined)
(label dscrdk already defined)
(label dscroth already defined)
(label dscrdsb already defined)
(label dscrsex already defined)
(label dscrgnd already defined)
(label dscrage already defined)
(label dscretn already defined)
(label dscrlng already defined)
(label dscrrlg already defined)
(label dscrntn already defined)
(label dscrrce already defined)
(label dscrgrp already defined)
(label pray already defined)
(label rlgatnd already defined)
(label rlgdgr already defined)
(label rlgdnme already defined)
(label rlgblge already defined)
(label rlgdnm already defined)
(label rlgblg already defined)
(label hlthhmp already defined)
(label health already defined)
(label trrtort already defined)
(label trrprsn already defined)
(label trrcnyr already defined)
(label trrenyr already defined)
(label crvctef already defined)
(label crvctwr already defined)
(label brghmef already defined)
(label brghmwr already defined)
(label aesfdrk already defined)
(label crmvct already defined)
(label sclact already defined)
(label inmdisc already defined)
(label sclmeet already defined)
(label happy already defined)
(label imwbcnt already defined)
(label imueclt already defined)
(label imbgeco already defined)
(label impcntr already defined)
(label imdfetn already defined)
(label imsmetn already defined)
(label euftf already defined)
(label scnsenv already defined)
(label prtyban already defined)
(label freehms already defined)
(label gincdif already defined)
(label stfhlth already defined)
(label stfedu already defined)
(label stfdem already defined)
(label stfgov already defined)
(label stfeco already defined)
(label stflife already defined)
(label lrscale already defined)
(label prtmbask already defined)
(label prtmbse already defined)
(label prtmbapt already defined)
(label prtmbno already defined)
(label prtmblv already defined)
(label prtmbgb already defined)
(label prtmbbde already defined)
(label prtmbcy already defined)
(label prtmbaat already defined)
(label mmbprty already defined)
(label prtdgcl already defined)
(label prtclask already defined)
(label prtclse already defined)
(label prtclbpt already defined)
(label prtclno already defined)
(label prtcllv already defined)
(label prtclgb already defined)
(label prtclbde already defined)
(label prtclcy already defined)
(label prtclaat already defined)
(label clsprty already defined)
(label bctprd already defined)
(label pbldmn already defined)
(label sgnptit already defined)
(label badge already defined)
(label wrkorg already defined)
(label wrkprty already defined)
(label contplt already defined)
(label prtvtask already defined)
(label prtvtse already defined)
(label prtvtapt already defined)
(label prtvtno already defined)
(label prtvtlv already defined)
(label prtvtie already defined)
(label prtvtgb already defined)
(label prtvbde2 already defined)
(label prtvbde1 already defined)
(label prtvtcy already defined)
(label prtvtaat already defined)
(label vote already defined)
(label trstun already defined)
(label trstep already defined)
(label trstprt already defined)
(label trstplt already defined)
(label trstplc already defined)
(label trstlgl already defined)
(label trstprl already defined)
(label poldcs already defined)
(label polcmpl already defined)
(label polintr already defined)
(label pplhlp already defined)
(label pplfair already defined)
(label ppltrst already defined)
(label netuse already defined)
(label nwsppol already defined)
(label nwsptot already defined)
(label rdpol already defined)
(label rdtot already defined)
(label tvpol already defined)
(label tvtot already defined)

. append using "ESSrecoded5.dta"
(label voted already defined)
(label party_close already defined)
(label party_vote already defined)
(label polint already defined)
(label parttime already defined)
(label temp already defined)
(label unemployed5y already defined)
(label mod_winners1 already defined)
(label mod_losers4 already defined)
(label mod_losers1 already defined)
(label gender already defined)
(label sector already defined)
(label class8_r already defined)
(label class16_r already defined)
(label selfem_mainjob already defined)
(label emplno_r already defined)
(label emplrel_r already defined)
(label glob_losers1 already defined)
(label offshore2 already defined)
(label offshore4 already defined)
(label educlvl already defined)
(label supqyr already defined)
(label supqmm already defined)
(label supqdd already defined)
(label supqad2 already defined)
(label supqad1 already defined)
(label inwemm already defined)
(label inwehh already defined)
(label inwyye already defined)
(label inwmme already defined)
(label inwdde already defined)
(label inwsmm already defined)
(label inwshh already defined)
(label inwyys already defined)
(label inwmms already defined)
(label inwdds already defined)
(label intewde already defined)
(label impfun already defined)
(label imptrad already defined)
(label impenv already defined)
(label iplylfr already defined)
(label iprspot already defined)
(label ipbhprp already defined)
(label ipadvnt already defined)
(label ipstrgv already defined)
(label ipsuces already defined)
(label iphlppl already defined)
(label impfree already defined)
(label ipgdtim already defined)
(label ipmodst already defined)
(label ipudrst already defined)
(label ipfrule already defined)
(label impdiff already defined)
(label impsafe already defined)
(label ipshabt already defined)
(label ipeqopt already defined)
(label imprich already defined)
(label ipcrtiv already defined)
(label plnchld already defined)
(label wntrtr already defined)
(label rtryr already defined)
(label ptnwkwe already defined)
(label wkovtmp already defined)
(label wkengtp already defined)
(label icptn already defined)
(label wkhsch already defined)
(label ipjbwfm already defined)
(label ipjbhin already defined)
(label ipjbscr already defined)
(label ipjbini already defined)
(label stfjbot already defined)
(label jbprtfp already defined)
(label trdawrk already defined)
(label wrywprb already defined)
(label rpljbde already defined)
(label ppwwkp already defined)
(label bsmw already defined)
(label oprtad already defined)
(label nevdnjb already defined)
(label wrkhrd already defined)
(label jbscr already defined)
(label dcsfwrk already defined)
(label hlthrwk already defined)
(label hlpcowk already defined)
(label wgdpeft already defined)
(label jbrqlrn already defined)
(label vrtywrk already defined)
(label jblrn already defined)
(label jbedyrs already defined)
(label jbcoedu already defined)
(label yrcremp already defined)
(label wrkwe already defined)
(label wkovrtm already defined)
(label wrkengt already defined)
(label mnrgtjb already defined)
(label wmcpwrk already defined)
(label actvgrs already defined)
(label clmrlx already defined)
(label gdsprt already defined)
(label atncrse already defined)
(label occm14b already defined)
(label jbspvm already defined)
(label emplnom already defined)
(label emprm14 already defined)
(label eiscedm already defined)
(label occf14b already defined)
(label jbspvf already defined)
(label emplnof already defined)
(label emprf14 already defined)
(label eiscedf already defined)
(label wkhtotp already defined)
(label njbspvp already defined)
(label jbspvp already defined)
(label emplnop already defined)
(label emprelp already defined)
(label iscocop already defined)
(label crpdwkp already defined)
(label mnactp already defined)
(label dngnap already defined)
(label dngrefp already defined)
(label dngnapp already defined)
(label dngdkp already defined)
(label dngothp already defined)
(label hswrkp already defined)
(label cmsrvp already defined)
(label rtrdp already defined)
(label dsbldp already defined)
(label uemplip already defined)
(label uemplap already defined)
(label edctnp already defined)
(label pdwrkp already defined)
(label eiscedp already defined)
(label brwmny already defined)
(label hincfel already defined)
(label pphincr already defined)
(label hinctnta already defined)
(label hincsrca already defined)
(label mbtru already defined)
(label uemp5yr already defined)
(label uemp12m already defined)
(label uemp3m already defined)
(label wrkac6m already defined)
(label iscoco already defined)
(label tporgwk already defined)
(label wkhtot already defined)
(label wkhct already defined)
(label wkdcpce already defined)
(label iorgact already defined)
(label wkdcorga already defined)
(label njbspv already defined)
(label jbspv already defined)
(label estsz already defined)
(label wrkctra already defined)
(label emplno already defined)
(label emplrel already defined)
(label pdjobyr already defined)
(label pdjobev already defined)
(label crpdwk already defined)
(label mnactic already defined)
(label mainact already defined)
(label dngna already defined)
(label dngref already defined)
(label dngdk already defined)
(label dngoth already defined)
(label hswrk already defined)
(label cmsrv already defined)
(label rtrd already defined)
(label dsbld already defined)
(label uempli already defined)
(label uempla already defined)
(label edctn already defined)
(label pdwrk already defined)
(label eduyrs already defined)
(label eisced already defined)
(label domicil already defined)
(label fxltph already defined)
(label chldhhe already defined)
(label chldhm already defined)
(label rshipa14 already defined)
(label rshipa13 already defined)
(label rshipa12 already defined)
(label rshipa11 already defined)
(label rshipa10 already defined)
(label rshipa9 already defined)
(label rshipa8 already defined)
(label rshipa7 already defined)
(label rshipa6 already defined)
(label rshipa5 already defined)
(label rshipa4 already defined)
(label rshipa3 already defined)
(label rshipa2 already defined)
(label yrbrn14 already defined)
(label yrbrn13 already defined)
(label yrbrn12 already defined)
(label yrbrn11 already defined)
(label yrbrn10 already defined)
(label yrbrn9 already defined)
(label yrbrn8 already defined)
(label yrbrn7 already defined)
(label yrbrn6 already defined)
(label yrbrn5 already defined)
(label yrbrn4 already defined)
(label yrbrn3 already defined)
(label yrbrn2 already defined)
(label agea already defined)
(label yrbrn already defined)
(label gndr14 already defined)
(label gndr13 already defined)
(label gndr12 already defined)
(label gndr11 already defined)
(label gndr10 already defined)
(label gndr9 already defined)
(label gndr8 already defined)
(label gndr7 already defined)
(label gndr6 already defined)
(label gndr5 already defined)
(label gndr4 already defined)
(label gndr3 already defined)
(label gndr2 already defined)
(label gndr already defined)
(label hhmmb already defined)
(label mocntr already defined)
(label facntr already defined)
(label blgetmg already defined)
(label brncntr already defined)
(label ctzcntr already defined)
(label dscrna already defined)
(label dscrnap already defined)
(label dscrref already defined)
(label dscrdk already defined)
(label dscroth already defined)
(label dscrdsb already defined)
(label dscrsex already defined)
(label dscrgnd already defined)
(label dscrage already defined)
(label dscretn already defined)
(label dscrlng already defined)
(label dscrrlg already defined)
(label dscrntn already defined)
(label dscrrce already defined)
(label dscrgrp already defined)
(label pray already defined)
(label rlgatnd already defined)
(label rlgdgr already defined)
(label rlgdeua already defined)
(label rlgdesk already defined)
(label rlgdept already defined)
(label rlgdeno already defined)
(label rlgdenl already defined)
(label rlgdelt already defined)
(label rlgdeil already defined)
(label rlgdeie already defined)
(label rlgdehu already defined)
(label rlgdegb already defined)
(label rlgdecy already defined)
(label rlgdnme already defined)
(label rlgblge already defined)
(label rlgdnua already defined)
(label rlgdnsk already defined)
(label rlgdnpt already defined)
(label rlgdnno already defined)
(label rlgdnnl already defined)
(label rlgdnlt already defined)
(label rlgdnil already defined)
(label rlgdnie already defined)
(label rlgdnhu already defined)
(label rlgdngb already defined)
(label rlgdncy already defined)
(label rlgdnm already defined)
(label rlgblg already defined)
(label hlthhmp already defined)
(label health already defined)
(label crvctef already defined)
(label crvctwr already defined)
(label brghmef already defined)
(label brghmwr already defined)
(label aesfdrk already defined)
(label crmvct already defined)
(label sclact already defined)
(label inmdisc already defined)
(label sclmeet already defined)
(label happy already defined)
(label imwbcnt already defined)
(label imueclt already defined)
(label imbgeco already defined)
(label impcntr already defined)
(label imdfetn already defined)
(label imsmetn already defined)
(label scnsenv already defined)
(label prtyban already defined)
(label freehms already defined)
(label gincdif already defined)
(label stfhlth already defined)
(label stfedu already defined)
(label stfdem already defined)
(label stfgov already defined)
(label stfeco already defined)
(label stflife already defined)
(label lrscale already defined)
(label prtmbcsi already defined)
(label prtmblt already defined)
(label prtmbaie already defined)
(label prtmbgb already defined)
(label prtmbbes already defined)
(label prtmbbdk already defined)
(label prtmbcy already defined)
(label prtmbhr already defined)
(label mmbprty already defined)
(label prtdgcl already defined)
(label prtclcsi already defined)
(label prtcllt already defined)
(label prtclaie already defined)
(label prtclgb already defined)
(label prtclbes already defined)
(label prtclbdk already defined)
(label prtclhr already defined)
(label prtclcy already defined)
(label clsprty already defined)
(label bctprd already defined)
(label pbldmn already defined)
(label sgnptit already defined)
(label badge already defined)
(label wrkorg already defined)
(label wrkprty already defined)
(label contplt already defined)
(label prtvtbua already defined)
(label prtvtcsi already defined)
(label prtvtbpl already defined)
(label prtvlt3 already defined)
(label prtvlt2 already defined)
(label prtvlt1 already defined)
(label prtvtgb already defined)
(label prtvtbfr already defined)
(label prtvtbes already defined)
(label prtvtbdk already defined)
(label prtvtcy already defined)
(label prtvthr already defined)
(label vote already defined)
(label trstun already defined)
(label trstep already defined)
(label trstprt already defined)
(label trstplt already defined)
(label trstplc already defined)
(label trstlgl already defined)
(label trstprl already defined)
(label polintr already defined)
(label pplhlp already defined)
(label pplfair already defined)
(label ppltrst already defined)
(label netuse already defined)
(label nwsppol already defined)
(label nwsptot already defined)
(label rdpol already defined)
(label rdtot already defined)
(label tvpol already defined)
(label tvtot already defined)

. 
. 
. save "ESSrecoded1_5.dta", replace
file ESSrecoded1_5.dta saved

. 
. 
. *----------------------------------------------------------------------------------------*
. *       7. Analysis - frequencies
. *----------------------------------------------------------------------------------------*
. 
. use "ESSrecoded1_5.dta"

. 
. 
. mean unemployed5y

Mean estimation                     Number of obs    =  146596

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |   .1175817   .0008413      .1159327    .1192306
--------------------------------------------------------------

. mean temp

Mean estimation                     Number of obs    =  146596

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .1177931   .0008419      .1161429    .1194433
--------------------------------------------------------------

. mean parttime

Mean estimation                     Number of obs    =  146596

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .1547041   .0009445      .1528529    .1565553
--------------------------------------------------------------

. 
. 
. mean unemployed5y if glob_losers1==1

Mean estimation                     Number of obs    =   13823

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |    .102872    .002584      .0978071     .107937
--------------------------------------------------------------

. mean unemployed5y if glob_winners1==1

Mean estimation                     Number of obs    =   40652

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |   .1124176   .0015667      .1093468    .1154884
--------------------------------------------------------------

. mean unemployed5y if mod_losers1==1

Mean estimation                     Number of obs    =   13587

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |   .1874586   .0033483      .1808954    .1940218
--------------------------------------------------------------

. mean unemployed5y if mod_losers4==1

Mean estimation                     Number of obs    =   26243

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |   .1667111   .0023008      .1622014    .1712208
--------------------------------------------------------------

. mean unemployed5y if mod_winners1==1

Mean estimation                     Number of obs    =   15191

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
unemployed5y |   .0802449   .0022043      .0759242    .0845655
--------------------------------------------------------------

. 
. mean temp if glob_losers1==1

Mean estimation                     Number of obs    =   13823

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .1001953    .002554      .0951892    .1052014
--------------------------------------------------------------

. mean temp if glob_winners1==1

Mean estimation                     Number of obs    =   40652

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .1153449   .0015843      .1122395    .1184502
--------------------------------------------------------------

. mean temp if mod_losers1==1

Mean estimation                     Number of obs    =   13587

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .2082873   .0034839      .2014583    .2151163
--------------------------------------------------------------

. mean temp if mod_losers4==1

Mean estimation                     Number of obs    =   26243

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .1651869   .0022924      .1606937    .1696801
--------------------------------------------------------------

. mean temp if mod_winners1==1

Mean estimation                     Number of obs    =   15191

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
        temp |   .1635179   .0030008       .157636    .1693997
--------------------------------------------------------------

. 
. mean parttime if glob_losers1==1

Mean estimation                     Number of obs    =   13823

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .1056211   .0026143      .1004967    .1107454
--------------------------------------------------------------

. mean parttime if glob_winners1==1

Mean estimation                     Number of obs    =   40652

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .1525386   .0017833      .1490434    .1560338
--------------------------------------------------------------

. mean parttime if mod_losers1==1

Mean estimation                     Number of obs    =   13587

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .3474645   .0040852       .339457     .355472
--------------------------------------------------------------

. mean parttime if mod_losers4==1

Mean estimation                     Number of obs    =   26243

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .0568533   .0014294      .0540515    .0596551
--------------------------------------------------------------

. mean parttime if mod_winners1==1

Mean estimation                     Number of obs    =   15191

--------------------------------------------------------------
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
    parttime |   .2931999   .0036936        .28596    .3004398
--------------------------------------------------------------

. 
. * frequencies --> table 1 (via xlsx)
. 
. 
. *----------------------------------------------------------------------------------------*
. *       8. Analysis - participation and partyvote
. *----------------------------------------------------------------------------------------*
. 
. * ropop dummy (rpop vs. anderes)
. 
. gen vrpop=.
(146596 missing values generated)

. replace vrpop=0 if inlist(party_vote,1,2,3,4,5,6)
(83271 real changes made)

. replace vrpop=1 if party_vote==7
(4804 real changes made)

. 
. * add non-voters to the vrpop-reference group
. replace vrpop=0 if voted==0
(25342 real changes made)

. 
. * generate low education as a control variable
. gen edlow=0

. replace edlow=1 if educlvl==1
(26675 real changes made)

. replace edlow=1 if educlvl==2
(27800 real changes made)

. 
. 
. * Nur fuer Lander mit rechts-populistischen Parteien 
. * nur AT, BE, CH, DK, FI, FR, NL, NO
. 
. 
. drop if de==1
(14487 observations deleted)

. drop if es==1
(9729 observations deleted)

. drop if gb==1
(11117 observations deleted)

. drop if gr==1
(9759 observations deleted)

. drop if ie==1
(10472 observations deleted)

. drop if pt==1
(10302 observations deleted)

. drop if se==1
(9201 observations deleted)

. drop if it==1
(1207 observations deleted)

. 
. * Auslaender ausschliessen
. 
. drop if ctzcntr==2
(3220 observations deleted)

. 
. 
. * DETERMINANTS OF VOTING AND RPOP-VOTE AMONG THE WORKING CLASS ONLY (outsider, glob_losers1: low-skilled offshoreable, 
> mod_losers1: routine service; mod_losers4: routine and skilled manual)
. gen work=0

. replace work=1 if class8_r==4
(10663 real changes made)

. replace work=1 if class8_r==6
(6584 real changes made)

. replace work=1 if class8_r==8
(12169 real changes made)

. replace work=. if class8_r==.
(8352 real changes made, 8352 to missing)

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit voted unemployed5y temp parttime edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -13601.755  
Iteration 1:   log likelihood = -12882.095  
Iteration 2:   log likelihood = -12840.979  
Iteration 3:   log likelihood = -12840.859  
Iteration 4:   log likelihood = -12840.859  

Logistic regression                               Number of obs   =      27036
                                                  LR chi2(13)     =    1521.79
                                                  Prob > chi2     =     0.0000
Log likelihood = -12840.859                       Pseudo R2       =     0.0559

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.5238044   .0443534   -11.81   0.000    -.6107354   -.4368734
        temp |   -.453449    .043699   -10.38   0.000    -.5390974   -.3678006
    parttime |   -.020355   .0412156    -0.49   0.621    -.1011362    .0604261
       edlow |  -.2131715   .0330525    -6.45   0.000    -.2779532   -.1483897
      gender |   .1148247   .0323493     3.55   0.000     .0514211    .1782282
         age |   .0001879   .0000582     3.23   0.001     .0000737     .000302
         inc |   .0003704   .0006083     0.61   0.543     -.000822    .0015627
          be |   1.768667   .0718104    24.63   0.000     1.627922    1.909413
          dk |   1.478237   .0674262    21.92   0.000     1.346084     1.61039
          fi |   .4339083   .0482733     8.99   0.000     .3392943    .5285223
          fr |   .1720509   .0559457     3.08   0.002     .0623993    .2817025
          nl |   .5329731   .0522647    10.20   0.000     .4305362      .63541
          no |   .6301726   .0522075    12.07   0.000     .5278479    .7324974
       _cons |   .9824104   .0373118    26.33   0.000     .9092806     1.05554
------------------------------------------------------------------------------

. estimates store votedlogit1

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit vrpop unemployed5y temp parttime edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -7829.5012  
Iteration 1:   log likelihood = -7494.1891  
Iteration 2:   log likelihood = -7452.4234  
Iteration 3:   log likelihood =  -7451.764  
Iteration 4:   log likelihood = -7451.7623  
Iteration 5:   log likelihood = -7451.7623  

Logistic regression                               Number of obs   =      23408
                                                  LR chi2(13)     =     755.48
                                                  Prob > chi2     =     0.0000
Log likelihood = -7451.7623                       Pseudo R2       =     0.0482

------------------------------------------------------------------------------
       vrpop |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.1186097   .0715791    -1.66   0.098    -.2589023    .0216828
        temp |  -.1016126   .0708927    -1.43   0.152    -.2405597    .0373344
    parttime |   .0719841   .0573501     1.26   0.209      -.04042    .1843882
       edlow |   .1084377   .0468268     2.32   0.021     .0166589    .2002164
      gender |  -.4534652   .0462432    -9.81   0.000    -.5441001   -.3628303
         age |  -.0001092   .0000839    -1.30   0.193    -.0002735    .0000552
         inc |  -.0026502   .0009639    -2.75   0.006    -.0045394    -.000761
          be |  -.1623548   .0754098    -2.15   0.031    -.3101554   -.0145543
          dk |  -.0247403   .0715515    -0.35   0.730    -.1649786     .115498
          fi |  -1.696188    .116585   -14.55   0.000     -1.92469   -1.467685
          fr |  -.8131708   .1106667    -7.35   0.000    -1.030074    -.596268
          nl |  -.3637113   .0772069    -4.71   0.000     -.515034   -.2123887
          no |   .4787715   .0636206     7.53   0.000     .3540775    .6034655
       _cons |  -1.746707    .053662   -32.55   0.000    -1.851883   -1.641532
------------------------------------------------------------------------------

. estimates store vrpoplogit1

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit voted unemployed5y temp parttime glob_losers1 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -13601.755  
Iteration 1:   log likelihood = -12876.486  
Iteration 2:   log likelihood = -12835.063  
Iteration 3:   log likelihood = -12834.941  
Iteration 4:   log likelihood = -12834.941  

Logistic regression                               Number of obs   =      27036
                                                  LR chi2(14)     =    1533.63
                                                  Prob > chi2     =     0.0000
Log likelihood = -12834.941                       Pseudo R2       =     0.0564

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.5211147   .0443696   -11.74   0.000    -.6080774   -.4341519
        temp |  -.4481445   .0437338   -10.25   0.000    -.5338612   -.3624277
    parttime |  -.0101131   .0413292    -0.24   0.807    -.0911168    .0708906
glob_losers1 |   .1962747   .0575764     3.41   0.001     .0834271    .3091222
       edlow |  -.2616148   .0357758    -7.31   0.000    -.3317342   -.1914955
      gender |   .1135642   .0323605     3.51   0.000     .0501388    .1769897
         age |   .0001877   .0000582     3.23   0.001     .0000736    .0003018
         inc |   .0003897   .0006085     0.64   0.522    -.0008029    .0015823
          be |   1.762879   .0718314    24.54   0.000     1.622092    1.903666
          dk |   1.479738   .0674391    21.94   0.000      1.34756    1.611917
          fi |   .4322218   .0482884     8.95   0.000     .3375782    .5268654
          fr |   .1671228   .0559798     2.99   0.003     .0574045    .2768411
          nl |   .5301991   .0522818    10.14   0.000     .4277287    .6326695
          no |   .6297842   .0522127    12.06   0.000     .5274492    .7321192
       _cons |   .9806949   .0373113    26.28   0.000      .907566    1.053824
------------------------------------------------------------------------------

. estimates store votedlogit2

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit vrpop unemployed5y temp parttime glob_losers1 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -7829.5012  
Iteration 1:   log likelihood = -7494.1773  
Iteration 2:   log likelihood = -7452.4133  
Iteration 3:   log likelihood = -7451.7539  
Iteration 4:   log likelihood = -7451.7523  
Iteration 5:   log likelihood = -7451.7523  

Logistic regression                               Number of obs   =      23408
                                                  LR chi2(14)     =     755.50
                                                  Prob > chi2     =     0.0000
Log likelihood = -7451.7523                       Pseudo R2       =     0.0482

------------------------------------------------------------------------------
       vrpop |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.1187633    .071587    -1.66   0.097    -.2590713    .0215446
        temp |  -.1017954   .0709035    -1.44   0.151    -.2407638     .037173
    parttime |   .0713112   .0575456     1.24   0.215    -.0414762    .1840985
glob_losers1 |  -.0114661   .0808012    -0.14   0.887    -.1698335    .1469014
       edlow |   .1114488   .0513828     2.17   0.030     .0107403    .2121573
      gender |  -.4534212   .0462446    -9.80   0.000    -.5440589   -.3627835
         age |  -.0001091   .0000839    -1.30   0.193    -.0002735    .0000553
         inc |  -.0026514   .0009639    -2.75   0.006    -.0045407   -.0007621
          be |  -.1619812   .0754551    -2.15   0.032    -.3098704   -.0140919
          dk |  -.0248093   .0715531    -0.35   0.729    -.1650508    .1154323
          fi |  -1.696087   .1165872   -14.55   0.000    -1.924594   -1.467581
          fr |   -.812945   .1106779    -7.35   0.000     -1.02987   -.5960204
          nl |  -.3635688    .077213    -4.71   0.000    -.5149035   -.2122341
          no |   .4788249   .0636216     7.53   0.000     .3541288     .603521
       _cons |  -1.746618   .0536648   -32.55   0.000    -1.851799   -1.641437
------------------------------------------------------------------------------

. estimates store vrpoplogit2

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit voted unemployed5y temp parttime mod_losers4 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -13601.755  
Iteration 1:   log likelihood = -12866.965  
Iteration 2:   log likelihood = -12825.003  
Iteration 3:   log likelihood = -12824.878  
Iteration 4:   log likelihood = -12824.878  

Logistic regression                               Number of obs   =      27036
                                                  LR chi2(14)     =    1553.75
                                                  Prob > chi2     =     0.0000
Log likelihood = -12824.878                       Pseudo R2       =     0.0571

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.5251078   .0443953   -11.83   0.000    -.6121209   -.4380947
        temp |  -.4552982   .0437476   -10.41   0.000    -.5410419   -.3695544
    parttime |  -.0538705   .0417038    -1.29   0.196    -.1356084    .0278675
 mod_losers4 |  -.2149101   .0379443    -5.66   0.000    -.2892795   -.1405407
       edlow |  -.1924541   .0332784    -5.78   0.000    -.2576787   -.1272296
      gender |   .0209119   .0360718     0.58   0.562    -.0497875    .0916114
         age |   .0001815   .0000575     3.16   0.002     .0000689    .0002942
         inc |    .000354   .0006087     0.58   0.561     -.000839     .001547
          be |   1.785107   .0719169    24.82   0.000     1.644153    1.926062
          dk |   1.494256   .0675329    22.13   0.000     1.361894    1.626618
          fi |   .4549262   .0484659     9.39   0.000     .3599347    .5499176
          fr |   .1817412   .0560246     3.24   0.001      .071935    .2915474
          nl |   .5257996    .052301    10.05   0.000     .4232914    .6283077
          no |    .635044   .0522466    12.15   0.000     .5326426    .7374455
       _cons |   1.106635   .0434457    25.47   0.000     1.021483    1.191787
------------------------------------------------------------------------------

. estimates store votedlogit3

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit vrpop unemployed5y temp parttime mod_losers4 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -7829.5012  
Iteration 1:   log likelihood = -7481.2146  
Iteration 2:   log likelihood =  -7437.895  
Iteration 3:   log likelihood = -7437.1932  
Iteration 4:   log likelihood = -7437.1914  
Iteration 5:   log likelihood = -7437.1914  

Logistic regression                               Number of obs   =      23408
                                                  LR chi2(14)     =     784.62
                                                  Prob > chi2     =     0.0000
Log likelihood = -7437.1914                       Pseudo R2       =     0.0501

------------------------------------------------------------------------------
       vrpop |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.1148023   .0716351    -1.60   0.109    -.2552045       .0256
        temp |  -.0960063   .0709576    -1.35   0.176    -.2350806     .043068
    parttime |   .1231743   .0583278     2.11   0.035     .0088539    .2374947
 mod_losers4 |     .28143   .0521321     5.40   0.000     .1792529    .3836071
       edlow |   .0822705   .0471312     1.75   0.081     -.010105     .174646
      gender |  -.3286379   .0518568    -6.34   0.000    -.4302753   -.2270004
         age |  -.0001095   .0000835    -1.31   0.190    -.0002731    .0000541
         inc |  -.0026442    .000964    -2.74   0.006    -.0045337   -.0007548
          be |  -.1821245   .0755562    -2.41   0.016    -.3302119   -.0340371
          dk |  -.0458729   .0717257    -0.64   0.522    -.1864527    .0947069
          fi |  -1.727373     .11678   -14.79   0.000    -1.956258   -1.498488
          fr |  -.8279929   .1107771    -7.47   0.000    -1.045112   -.6108738
          nl |  -.3537987   .0772555    -4.58   0.000    -.5052166   -.2023807
          no |   .4730133   .0636865     7.43   0.000     .3481901    .5978366
       _cons |  -1.914805   .0626856   -30.55   0.000    -2.037666   -1.791943
------------------------------------------------------------------------------

. estimates store vrpoplogit3

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit voted unemployed5y temp parttime mod_losers1 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -13601.755  
Iteration 1:   log likelihood = -12876.258  
Iteration 2:   log likelihood = -12834.779  
Iteration 3:   log likelihood = -12834.657  
Iteration 4:   log likelihood = -12834.657  

Logistic regression                               Number of obs   =      27036
                                                  LR chi2(14)     =    1534.19
                                                  Prob > chi2     =     0.0000
Log likelihood = -12834.657                       Pseudo R2       =     0.0564

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.5193628   .0443801   -11.70   0.000    -.6063461   -.4323794
        temp |  -.4480011   .0437354   -10.24   0.000    -.5337209   -.3622813
    parttime |   .0037687   .0418114     0.09   0.928    -.0781802    .0857175
 mod_losers1 |  -.1455274   .0410764    -3.54   0.000    -.2260358   -.0650191
       edlow |  -.1951472   .0334603    -5.83   0.000    -.2607281   -.1295663
      gender |   .1327851   .0328221     4.05   0.000      .068455    .1971151
         age |   .0001906   .0000583     3.27   0.001     .0000764    .0003049
         inc |   .0003576   .0006083     0.59   0.557    -.0008347      .00155
          be |   1.770268   .0718284    24.65   0.000     1.629487    1.911049
          dk |   1.481068   .0674435    21.96   0.000     1.348881    1.613255
          fi |    .440185   .0483133     9.11   0.000     .3454927    .5348773
          fr |   .1765583    .055971     3.15   0.002     .0668571    .2862595
          nl |    .535472   .0522814    10.24   0.000     .4330023    .6379417
          no |   .6377823   .0522728    12.20   0.000     .5353295    .7402351
       _cons |   .9837229   .0373023    26.37   0.000     .9106118    1.056834
------------------------------------------------------------------------------

. estimates store votedlogit4

. restore

. 
. preserve

. keep if work==1
(37686 observations deleted)

. logit vrpop unemployed5y temp parttime mod_losers1 edlow gender age inc be dk fi fr nl no

Iteration 0:   log likelihood = -7829.5012  
Iteration 1:   log likelihood = -7494.1646  
Iteration 2:   log likelihood = -7452.4005  
Iteration 3:   log likelihood = -7451.7416  
Iteration 4:   log likelihood =   -7451.74  
Iteration 5:   log likelihood =   -7451.74  

Logistic regression                               Number of obs   =      23408
                                                  LR chi2(14)     =     755.52
                                                  Prob > chi2     =     0.0000
Log likelihood =   -7451.74                       Pseudo R2       =     0.0482

------------------------------------------------------------------------------
       vrpop |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
unemployed5y |  -.1190898   .0716156    -1.66   0.096    -.2594539    .0212743
        temp |  -.1021011   .0709304    -1.44   0.150    -.2411221    .0369199
    parttime |   .0698203    .058256     1.20   0.231    -.0443594    .1839999
 mod_losers1 |   .0127823   .0603429     0.21   0.832    -.1054876    .1310522
       edlow |   .1069825   .0473302     2.26   0.024     .0142171     .199748
      gender |  -.4547992   .0466739    -9.74   0.000    -.5462783   -.3633201
         age |  -.0001093   .0000839    -1.30   0.193    -.0002736    .0000551
         inc |  -.0026495   .0009639    -2.75   0.006    -.0045387   -.0007603
          be |  -.1623146   .0754094    -2.15   0.031    -.3101143   -.0145149
          dk |  -.0248763   .0715544    -0.35   0.728    -.1651203    .1153676
          fi |  -1.696592   .1165997   -14.55   0.000    -1.925123    -1.46806
          fr |   -.813536   .1106792    -7.35   0.000    -1.030463   -.5966088
          nl |  -.3638557    .077209    -4.71   0.000    -.5151826   -.2125288
          no |   .4782151   .0636746     7.51   0.000     .3534152    .6030149
       _cons |  -1.746995   .0536762   -32.55   0.000    -1.852199   -1.641792
------------------------------------------------------------------------------

. estimates store vrpoplogit4

. restore

. 
. estout votedlogit1 vrpoplogit1 votedlogit2 vrpoplogit2 votedlogit3 vrpoplogit3 votedlogit4 vrpoplogit4, cells(b(star fm
> t(%9.2f)) z(fmt(%9.2f))) style(fixed) starlevels(# 0.10 * 0.05 ** 0.01 *** 0.001) stats(N)

              votedlogit1     vrpoplogit1     votedlogit2     vrpoplogit2     votedlogit3     vrpoplogit3     votedlogit4
>      vrpoplogit4   
                      b/z             b/z             b/z             b/z             b/z             b/z             b/z
>              b/z   
main                                                                                                                     
>                    
unemployed5y        -0.52***        -0.12#          -0.52***        -0.12#          -0.53***        -0.11           -0.52
> ***        -0.12#  
                                                                                                                         
>                    
temp                -0.45***        -0.10           -0.45***        -0.10           -0.46***        -0.10           -0.45
> ***        -0.10   
                                                                                                                         
>                    
parttime            -0.02            0.07           -0.01            0.07           -0.05            0.12*           0.00
>             0.07   
                                                                                                                         
>                    
edlow               -0.21***         0.11*          -0.26***         0.11*          -0.19***         0.08#          -0.20
> ***         0.11*  
                                                                                                                         
>                    
gender               0.11***        -0.45***         0.11***        -0.45***         0.02           -0.33***         0.13
> ***        -0.45***
                                                                                                                         
>                    
age                  0.00**         -0.00            0.00**         -0.00            0.00**         -0.00            0.00
> **         -0.00   
                                                                                                                         
>                    
inc                  0.00           -0.00**          0.00           -0.00**          0.00           -0.00**          0.00
>            -0.00** 
                                                                                                                         
>                    
be                   1.77***        -0.16*           1.76***        -0.16*           1.79***        -0.18*           1.77
> ***        -0.16*  
                                                                                                                         
>                    
dk                   1.48***        -0.02            1.48***        -0.02            1.49***        -0.05            1.48
> ***        -0.02   
                                                                                                                         
>                    
fi                   0.43***        -1.70***         0.43***        -1.70***         0.45***        -1.73***         0.44
> ***        -1.70***
                                                                                                                         
>                    
fr                   0.17**         -0.81***         0.17**         -0.81***         0.18**         -0.83***         0.18
> **         -0.81***
                                                                                                                         
>                    
nl                   0.53***        -0.36***         0.53***        -0.36***         0.53***        -0.35***         0.54
> ***        -0.36***
                                                                                                                         
>                    
no                   0.63***         0.48***         0.63***         0.48***         0.64***         0.47***         0.64
> ***         0.48***
                                                                                                                         
>                    
glob_losers1                                         0.20***        -0.01                                                
>                    
                                                                                                                         
>                    
mod_losers4                                                                         -0.21***         0.28***             
>                    
                                                                                                                         
>                    
mod_losers1                                                                                                         -0.15
> ***         0.01   
                                                                                                                         
>                    
_cons                0.98***        -1.75***         0.98***        -1.75***         1.11***        -1.91***         0.98
> ***        -1.75***
                                                                                                                         
>                    
N                27036.00        23408.00        27036.00        23408.00        27036.00        23408.00        27036.00
>         23408.00   

. 
. 
end of do-file

